/**
 * Public Styles for Freedive Central
 */

/* General */
.fdc-message {
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    margin: 20px 0;
    border-radius: 4px;
}

.fdc-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.fdc-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Buttons */
.fdc-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.fdc-button:hover {
    background: #005a87;
    color: #fff;
}

.fdc-button-primary {
    background: #0073aa;
}

.fdc-button-primary:hover {
    background: #005a87;
}

.fdc-button-secondary {
    background: #6c757d;
}

.fdc-button-secondary:hover {
    background: #5a6268;
}

.fdc-button-success {
    background: #28a745;
}

.fdc-button-success:hover {
    background: #218838;
}

.fdc-button-small {
    padding: 6px 12px;
    font-size: 12px;
}

.fdc-button-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* Upcoming Competitions */
.fdc-upcoming-competitions {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.fdc-competition-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fdc-competition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fdc-competition-card h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 24px;
}

.fdc-comp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.fdc-comp-meta span {
    display: inline-block;
}

.fdc-regulation {
    background: #0073aa;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
}

.fdc-comp-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Competition History */
.fdc-competition-history {
    margin: 30px 0;
}

.fdc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.fdc-table thead {
    background: #0073aa;
    color: #fff;
}

.fdc-table th,
.fdc-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.fdc-table tbody tr:hover {
    background: #f8f9fa;
}

.fdc-table tbody tr:last-child td {
    border-bottom: none;
}

/* User Type Selector */
.fdc-user-type-selector {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.fdc-checkbox-label {
    display: block;
    padding: 10px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.fdc-checkbox-label:hover {
    background: #f8f9fa;
}

.fdc-checkbox-label input {
    margin-right: 10px;
}

/* Panels */
.fdc-organizer-panel,
.fdc-athlete-panel {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fdc-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

/* Annual Ranking */
.fdc-annual-ranking {
    margin: 30px 0;
}

.fdc-annual-ranking h2 {
    color: #0073aa;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

.fdc-annual-ranking h3 {
    margin-top: 30px;
    color: #333;
}

.fdc-annual-ranking h4 {
    color: #666;
    margin-top: 20px;
}

.fdc-ranking-table .fdc-rank-gold {
    background-color: #ffd700;
}

.fdc-ranking-table .fdc-rank-silver {
    background-color: #c0c0c0;
}

.fdc-ranking-table .fdc-rank-bronze {
    background-color: #cd7f32;
}

/* =============================================
   COMPETITION DETAILS PAGE — Redesigned
   ============================================= */

/* Container */
.fdc-competition-details,
.fdc-athlete-profile {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.05);
    overflow: hidden;
    max-width: 1200px;
    margin: 30px auto;
    border: 1px solid #e2e8f0;
}

/* Shared Hero Settings */
.fdc-details-hero,
.fdc-profile-header {
    position: relative;
    background: linear-gradient(135deg, #020617 0%, #075985 100%);
    overflow: hidden;
}

.fdc-details-hero::before,
.fdc-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.18) 0%, rgba(2, 6, 23, 0) 65%);
    z-index: 1;
    pointer-events: none;
}

/* Hero Section */
.fdc-details-hero {
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

.fdc-details-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.3);
    transform: scale(1.15);
    z-index: 0;
}

.fdc-details-hero-overlay,
.fdc-profile-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.75) 100%);
    z-index: 1;
}

.fdc-details-hero-inner {
    width: 100%;
    z-index: 2;
}

.fdc-details-hero-content {
    position: relative;
    padding: 40px 40px 35px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.fdc-details-hero-poster {
    width: 150px;
    height: auto;
    max-height: 220px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    background: rgba(2, 6, 23, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.fdc-details-hero-poster:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.4);
}

.fdc-details-hero-info {
    flex: 1;
    min-width: 0;
}

.fdc-details-hero-title {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.5);
    font-family: 'Outfit', sans-serif;
}

.fdc-details-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Hero Podiums Styles */
.fdc-details-hero-podiums {
    display: flex !important;
    gap: 20px !important;
    flex-shrink: 0 !important;
    align-items: flex-end !important;
}

.fdc-hero-podium-block {
    background: rgba(2, 6, 23, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.fdc-hero-podium-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
}

.fdc-hero-podium-steps {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 120px !important;
}

.fdc-podium-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 60px !important;
    position: relative !important;
}

.fdc-podium-avatar-container {
    position: relative !important;
    margin-bottom: 2px !important;
    display: flex !important;
    justify-content: center !important;
}

.fdc-podium-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.fdc-step-1 .fdc-podium-avatar {
    border: 2px solid #fbbf24 !important;
}

.fdc-step-2 .fdc-podium-avatar {
    border: 2px solid #cbd5e1 !important;
}

.fdc-step-3 .fdc-podium-avatar {
    border: 2px solid #f97316 !important;
}

.fdc-podium-flag {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 14px !important;
    height: 10px !important;
    border-radius: 1px !important;
    border: 1px solid #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.fdc-podium-athlete-name {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #fff !important;
    max-width: 58px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
    margin-top: 2px !important;
}

.fdc-podium-athlete-name a {
    color: #fff !important;
    text-decoration: none !important;
}

.fdc-podium-athlete-name a:hover {
    text-decoration: underline !important;
}

.fdc-podium-athlete-points {
    font-size: 8px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 4px !important;
    font-weight: 500 !important;
}

.fdc-podium-bar {
    width: 100% !important;
    border-radius: 4px 4px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fdc-step-1 .fdc-podium-bar {
    height: 40px !important;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.4) !important;
}

.fdc-step-2 .fdc-podium-bar {
    height: 28px !important;
    background: linear-gradient(180deg, #cbd5e1 0%, #64748b 100%) !important;
    box-shadow: 0 2px 5px rgba(100, 116, 139, 0.4) !important;
}

.fdc-step-3 .fdc-podium-bar {
    height: 18px !important;
    background: linear-gradient(180deg, #ffedd5 0%, #c2410c 100%) !important;
    box-shadow: 0 2px 5px rgba(194, 65, 12, 0.4) !important;
}

.fdc-podium-rank-num {
    font-size: 11px !important;
    font-weight: 900 !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.fdc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.15);
}

.fdc-hero-badge-regulation {
    background: #0284c7;
    color: #fff;
}

.fdc-hero-badge-type {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Details Body */
.fdc-details-body {
    padding: 35px 40px 40px;
}

/* Info Cards Grid */
.fdc-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 35px;
}

.fdc-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fdc-info-card:hover {
    border-color: #c5d5e4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.fdc-info-card-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4fd;
    border-radius: 8px;
}

.fdc-info-card-content {
    flex: 1;
    min-width: 0;
}

.fdc-info-card-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8896a6;
    margin-bottom: 4px;
}

.fdc-info-card-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b3c;
    line-height: 1.4;
}

/* Section Headers */
.fdc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf0f3;
}

.fdc-section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a2b3c;
}

.fdc-section-header-icon {
    font-size: 20px;
}

.fdc-section-count {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.fdc-count-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f0f4f8;
    color: #5a6b7d;
}

.fdc-count-pill-confirmed {
    background: #e6f7ed;
    color: #1a7a3a;
}

/* Disciplines Section */
.fdc-disciplines-section {
    margin-bottom: 30px;
}

.fdc-day-card {
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.fdc-day-card:hover {
    border-color: #c5d5e4;
}

.fdc-day-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fdc-day-label {
    font-weight: 700;
    font-size: 14px;
    color: #1a2b3c;
}

.fdc-day-date {
    font-size: 13px;
    color: #8896a6;
}

.fdc-discipline-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fdc-discipline-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #e8f4fd;
    color: #0a6eaa;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cce5f5;
    transition: background 0.2s, transform 0.2s;
}

.fdc-discipline-pill:hover {
    background: #d0e9f7;
    transform: translateY(-1px);
}

/* Results CTA */
.fdc-results-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 14px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}

.fdc-results-cta:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.fdc-results-cta-live {
    background: linear-gradient(135deg, #e6f9ee 0%, #f0faf4 100%);
    border: 1px solid #b8e6ca;
}

.fdc-results-cta-past {
    background: linear-gradient(135deg, #e8f0fd 0%, #f0f5fc 100%);
    border: 1px solid #b8cfe6;
}

.fdc-results-cta-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.fdc-results-cta-text {
    flex: 1;
}

.fdc-results-cta-text p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #5a6b7d;
    line-height: 1.5;
}

.fdc-results-cta .fdc-button {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Additional Info */
.fdc-additional-info-section {
    margin-bottom: 30px;
}

.fdc-additional-info-card {
    background: #fafbfc;
    border-left: 4px solid #0073aa;
    border-radius: 0 12px 12px 0;
    padding: 22px 28px;
}

.fdc-additional-info-card p {
    margin: 0;
    line-height: 1.7;
    color: #3a4a5c;
}

/* Registration Section */
.fdc-registration-card {
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    text-align: center;
    margin-bottom: 30px;
}

.fdc-registration-open {
    background: linear-gradient(135deg, #f0faf4 0%, #fafcfb 100%);
    border-color: #b8e6ca;
}

.fdc-registration-closed {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.fdc-registration-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
}

.fdc-registration-status-registered {
    background: #e6f7ed;
    color: #1a7a3a;
}

.fdc-registration-status-closed {
    background: #f0f0f0;
    color: #777;
}

.fdc-registration-form {
    max-width: 420px;
    margin: 0 auto;
}

.fdc-registration-form-fields {
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e5ea;
    margin-bottom: 20px;
}

.fdc-registration-form-fields p.fdc-form-hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: #8896a6;
    font-style: italic;
}

.fdc-reg-field {
    margin-bottom: 16px;
}

.fdc-reg-field:last-child {
    margin-bottom: 0;
}

.fdc-reg-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #1a2b3c;
}

.fdc-reg-field select,
.fdc-reg-field input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    font-size: 14px;
    transition: border-color 0.2s;
}

.fdc-reg-field select:focus,
.fdc-reg-field input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.fdc-login-prompt {
    max-width: 500px;
    margin: 0 auto;
}

.fdc-login-prompt p {
    margin-bottom: 20px;
    color: #5a6b7d;
}

.fdc-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Athletes Grid */
.fdc-athletes-section {
    margin-bottom: 30px;
}

.fdc-athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.fdc-athlete-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e8edf2;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}

.fdc-athlete-card:hover {
    border-color: #c5d5e4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.fdc-athlete-card .fdc-avatar-round img {
    border-radius: 50% !important;
}

.fdc-athlete-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fdc-athlete-name a {
    text-decoration: none;
    color: #1a2b3c;
    transition: color 0.2s;
}

.fdc-athlete-name a:hover {
    color: #0073aa;
}

.fdc-athlete-gender {
    font-size: 11px;
    color: #8896a6;
}

.fdc-athlete-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fdc-athlete-status-confirmed {
    color: #28a745;
}

.fdc-athlete-status-pending {
    color: #f0ad4e;
}

/* Action Bar (Links) */
.fdc-action-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 25px;
    border-top: 1px solid #edf0f3;
}

.fdc-action-bar .fdc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
}

/* Responsive: Competition Details */
@media (max-width: 768px) {
    .fdc-details-hero {
        min-height: 220px;
    }

    .fdc-details-hero-content {
        padding: 80px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fdc-details-hero-poster {
        width: 90px;
        height: 130px;
    }

    .fdc-details-hero-title {
        font-size: 22px;
    }

    .fdc-details-body {
        padding: 24px 20px 30px;
    }

    .fdc-info-cards {
        grid-template-columns: 1fr;
    }

    .fdc-results-cta {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .fdc-action-bar {
        flex-direction: column;
    }

    .fdc-section-header {
        flex-wrap: wrap;
    }

    .fdc-section-count {
        margin-left: 0;
        width: 100%;
    }

    .fdc-athletes-grid {
        grid-template-columns: 1fr;
    }
}

/* Legacy poster (keep for backward compat) */
.fdc-poster {
    margin: 20px 0;
    text-align: center;
}

.fdc-poster img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Results View */
.fdc-competition-results-view {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fdc-gender-filter {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fdc-gender-filter label {
    margin: 0;
}

.fdc-gender-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.fdc-results-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #ddd;
}

.fdc-tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.fdc-tab-button:hover {
    color: #0073aa;
}

.fdc-tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.fdc-tab-content {
    display: none;
    padding: 20px 0;
}

.fdc-tab-content.active {
    display: block;
}

.fdc-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    color: #333;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.fdc-rank-1 .fdc-rank-badge {
    background: #ffd700;
    color: #000;
}

.fdc-rank-2 .fdc-rank-badge {
    background: #c0c0c0;
    color: #000;
}

.fdc-rank-3 .fdc-rank-badge {
    background: #cd7f32;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .fdc-comp-meta {
        flex-direction: column;
        gap: 8px;
    }

    .fdc-comp-actions {
        flex-direction: column;
    }

    .fdc-details-grid {
        grid-template-columns: 1fr;
    }

    .fdc-panel-actions {
        flex-direction: column;
    }

    .fdc-table {
        font-size: 14px;
    }

    .fdc-table th,
    .fdc-table td {
        padding: 8px 10px;
    }
}

/* Organizer Dashboard */
.fdc-organizer-dashboard {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fdc-dashboard-header {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.fdc-dashboard-header h1 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 32px;
}

.fdc-dashboard-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.fdc-dashboard-nav {
    display: flex;
    gap: 15px;
}

.fdc-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    color: #1a1a1a;
}

.fdc-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.fdc-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.fdc-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.fdc-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.fdc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.fdc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.fdc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.fdc-comp-card-poster {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fdc-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.fdc-badge-ongoing {
    background: #4caf50;
    color: #fff;
}

.fdc-comp-card-content {
    padding: 20px;
}

.fdc-comp-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.fdc-comp-meta {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
    margin-bottom: 20px;
}

.fdc-card-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.fdc-btn-results {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
    flex: 2;
    justify-content: center;
}

.fdc-btn-outline {
    flex: 1;
    justify-content: center;
}

/* Dashboard Form */
.fdc-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.fdc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.fdc-form-group.full {
    grid-column: span 2;
}

.fdc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.fdc-form-group input,
.fdc-form-group select,
.fdc-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.fdc-form-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Status Messages */
.fdc-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fdc-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 5px solid #4caf50;
}

.fdc-error {
    background: #ffebee;
    color: #c62828;
    border-left: 5px solid #f44336;
}

@media (max-width: 600px) {
    .fdc-form-grid {
        grid-template-columns: 1fr;
    }

    .fdc-form-group.full {
        grid-column: auto;
    }

    .fdc-dashboard-nav {
        flex-direction: column;
    }

    .fdc-dashboard-header {
        padding: 25px;
    }
}

/* =============================================
   ATHLETE PROFILE PAGE
   ============================================= */

/* =============================================
   ATHLETE PROFILE PAGE — Redesigned
   ============================================= */

/* Profile Header */
.fdc-profile-header {
    min-height: 240px;
    display: flex;
    align-items: flex-end;
}

.fdc-profile-header-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px 30px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}

.fdc-profile-avatar {
    flex-shrink: 0;
}

.fdc-profile-avatar img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    border: 4px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.fdc-profile-avatar img:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.4);
}

.fdc-profile-info {
    flex: 1;
    min-width: 0;
}

.fdc-profile-name {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.5);
    font-family: 'Outfit', sans-serif;
}

.fdc-profile-country {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    font-size: 16px;
    color: #e2e8f0;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(2, 6, 23, 0.4);
}

.fdc-profile-country img {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(2, 6, 23, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Profile Intro & Back link */
.fdc-profile-results {
    padding: 35px 40px 40px;
}

.fdc-profile-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.fdc-profile-intro-text {
    font-size: 16px;
    color: #475569;
    margin: 0;
}

.fdc-profile-back-link {
    text-decoration: none;
    color: #0284c7;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, transform 0.2s;
}

.fdc-profile-back-link:hover {
    color: #0369a1;
    transform: translateX(-3px);
}

.fdc-profile-back-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
}

/* Discipline Card Blocks */
.fdc-discipline-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 35px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fdc-discipline-block:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.04);
}

.fdc-discipline-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.fdc-discipline-code {
    background: #e0f2fe;
    color: #0284c7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.fdc-discipline-name {
    color: #64748b;
    font-weight: 500;
}

/* Evolution Chart inside Card */
.fdc-evolution-chart-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Table Card Customizations */
.fdc-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 0;
    border-radius: 8px;
}

.fdc-profile-table th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.fdc-profile-table td {
    padding: 12px 16px;
}

.fdc-penalty-cell {
    color: #ef4444;
    font-weight: 500;
}

.fdc-points-cell {
    color: #0f172a;
}

.fdc-comp-link {
    text-decoration: none;
    color: #0284c7;
    font-weight: 600;
    transition: color 0.2s;
}

.fdc-comp-link:hover {
    color: #0369a1;
}

.fdc-date-cell {
    color: #64748b;
}

/* Card Badges White, Yellow, Red (Standardized) */
.fdc-card-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    vertical-align: middle;
}

.fdc-card-white {
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
}

.fdc-card-yellow {
    background-color: #facc15;
    border: 2px solid #eab308;
}

.fdc-card-red {
    background-color: #ef4444;
    border: 2px solid #dc2626;
}

.fdc-remark-badge {
    display: inline-block;
    font-size: 12px;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    font-style: normal;
    border: 1px solid #e2e8f0;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Message Alerts */
.fdc-message-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-style: italic;
    font-size: 16px;
    margin: 0;
}

/* ---- Tablet Response ---- */
@media (max-width: 1024px) {
    .fdc-competition-details,
    .fdc-athlete-profile {
        margin: 20px 15px;
    }

    .fdc-profile-header-content {
        padding: 40px 30px 25px;
        gap: 20px;
    }

    .fdc-profile-name {
        font-size: 26px;
    }
}

/* ---- Mobile Response ---- */
@media (max-width: 768px) {
    .fdc-profile-header-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 30px 20px 20px;
        gap: 15px;
    }

    .fdc-profile-avatar img {
        width: 100px !important;
        height: 100px !important;
    }

    .fdc-profile-country {
        justify-content: center;
        font-size: 14px;
    }

    .fdc-profile-results {
        padding: 24px 20px 30px;
    }

    .fdc-profile-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .fdc-discipline-block {
        padding: 16px;
        margin-bottom: 20px;
    }

    .fdc-discipline-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .fdc-evolution-chart-wrap {
        height: 220px;
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .fdc-profile-table th,
    .fdc-profile-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ---- Small phones Response ---- */
@media (max-width: 480px) {
    .fdc-profile-name {
        font-size: 22px;
    }

    .fdc-profile-avatar img {
        width: 80px !important;
        height: 80px !important;
    }

    .fdc-evolution-chart-wrap {
        height: 180px;
    }
}


/* =============================================
   ORGANIZER RESULTS DASHBOARD REDESIGN
   ============================================= */

/* Main Header Section */
.fdc-modern-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.fdc-header-left {
    flex: 1;
    min-width: 250px;
}
.fdc-header-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0 !important;
}
.fdc-header-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 !important;
}
.fdc-header-badges {
    display: flex;
    gap: 15px;
}
.fdc-dashboard-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.fdc-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.fdc-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
.fdc-stat-reg {
    border-left: 4px solid #3b82f6;
}
.fdc-stat-conf {
    border-left: 4px solid #10b981;
}

/* Modern Form & Grid Layout */
.fdc-modern-form-container {
    width: 100%;
    margin-top: 10px;
}
.fdc-form-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    align-items: start;
    margin-bottom: 25px;
}
@media (max-width: 768px) {
    .fdc-form-layout-grid {
        grid-template-columns: 1fr;
    }
}
.fdc-modern-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(2, 6, 23, 0.03);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fdc-modern-form-card:hover {
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.05);
}
.fdc-form-card-header {
    background: #f8fafc;
    padding: 16px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.fdc-step-num {
    background: #0f172a;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.fdc-form-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 !important;
}
.fdc-form-card-body {
    padding: 22px;
}

/* Fields & Inputs */
.fdc-modern-form-row {
    margin-bottom: 20px;
}
.fdc-modern-form-row:last-child {
    margin-bottom: 0;
}
.fdc-modern-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}
.fdc-modern-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}
.fdc-modern-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}
.fdc-form-row-helper {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}
.text-primary-light {
    color: #2563eb;
}
.fdc-form-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.fdc-form-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.fdc-day-selection-highlight {
    background: #eff6ff;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}
.fdc-day-selection-highlight .fdc-modern-form-label {
    color: #1e3a8a;
}
.fdc-select-day {
    font-weight: 600;
    color: #1e3a8a;
    background-color: #ffffff;
}

/* Custom Selection wrappers */
.fdc-input-select-wrapper {
    position: relative;
    width: 100%;
}
.fdc-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 480px) {
    .fdc-grid-half {
        grid-template-columns: 1fr;
    }
}

/* Interactive Card selector for White/Yellow/Red card */
.fdc-card-selector-group {
    display: flex;
    gap: 12px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.fdc-card-select-btn {
    flex: 1;
    min-width: 100px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}
.fdc-card-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.fdc-radio-hidden {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.fdc-card-swatch {
    display: inline-block;
    width: 16px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.15);
}
.fdc-card-white .fdc-card-swatch {
    background: #ffffff;
}
.fdc-card-yellow .fdc-card-swatch {
    background: #fbbf24;
}
.fdc-card-red .fdc-card-swatch {
    background: #ef4444;
}
.fdc-card-text {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

/* Card Selection Highlights */
.fdc-card-white.is-selected {
    border-color: #94a3b8;
    background: #f8fafc;
}
.fdc-card-yellow.is-selected {
    border-color: #d97706;
    background: #fffbeb;
}
.fdc-card-yellow.is-selected .fdc-card-text {
    color: #b45309;
}
.fdc-card-red.is-selected {
    border-color: #b91c1c;
    background: #fef2f2;
}
.fdc-card-red.is-selected .fdc-card-text {
    color: #991b1b;
}

/* Submit Actions styling */
.fdc-form-submit-row {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}
.fdc-modern-btn-submit {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
    transition: all 0.2s ease-in-out;
}
.fdc-modern-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.35);
}
.fdc-modern-btn-submit:active {
    transform: translateY(1px);
}

/* =============================================
   VIEW RESULTS / LEADERS TAB DESIGN
   ============================================= */

/* Gender Filter Container */
.fdc-gender-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fdc-gender-filter-container label {
    font-weight: 600;
    font-size: 13px;
    color: #475569;
}
.fdc-select-custom-small {
    padding: 6px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
}

/* Segmented Day navigation */
.fdc-results-day-tabs-wrapper {
    margin-top: 5px;
}
.fdc-day-tabs-nav-segmented {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 2px;
}
.fdc-results-day-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fdc-results-day-btn:hover {
    color: #0f172a;
}
.fdc-results-day-btn.active {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Modern Results Card & Banner */
.fdc-modern-results-day-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(2, 6, 23, 0.02);
    overflow: hidden;
    padding: 24px;
    margin-bottom: 20px;
}
.fdc-day-card-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.fdc-banner-icon {
    font-size: 20px;
}
.fdc-day-card-banner h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* Discipline result blocks */
.fdc-discipline-results-block {
    margin-bottom: 35px;
}
.fdc-discipline-results-block:last-child {
    margin-bottom: 0;
}
.fdc-discipline-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.fdc-discipline-tag {
    background: #eff6ff;
    color: #2563eb;
    border: 1.5px solid #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.fdc-discipline-fullname {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 0 !important;
}

/* Gender tables split */
.fdc-gender-tables-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}
@media (max-width: 768px) {
    .fdc-gender-tables-split {
        grid-template-columns: 1fr;
    }
}
.fdc-gender-table-card {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}
.fdc-gender-title-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.fdc-gender-title-header.male {
    background: #f0f7ff;
    color: #1e40af;
}
.fdc-gender-title-header.female {
    background: #fdf2f8;
    color: #9d174d;
}
.fdc-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.fdc-table-responsive .fdc-results-table {
    min-width: 620px;
}
.fdc-table-responsive::-webkit-scrollbar {
    height: 6px;
}
.fdc-table-responsive::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}
.fdc-table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.2s ease;
}
.fdc-table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modernized Tables */
.fdc-modern-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}
.fdc-modern-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border-bottom: 1.5px solid #edf2f7;
    text-align: left;
}
.fdc-modern-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: #334155;
    vertical-align: middle;
}
.fdc-modern-table tbody tr {
    transition: background 0.15s ease;
}
.fdc-modern-table tbody tr:hover {
    background: #f8fafc;
}
.fdc-modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank column columns widths */
.col-rank-athlete { width: 30%; }
.col-ap { width: 8%; }
.col-rp { width: 8%; }
.col-points { width: 10%; }
.col-remarks { width: 14%; }
.col-card { width: 14%; }
.col-actions { width: 16%; }

/* Table cells content styling */
.fdc-table-athlete-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fdc-rank-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
    flex-shrink: 0;
}
.fdc-rank-1 .fdc-rank-badge {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
}
.fdc-rank-2 .fdc-rank-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.fdc-rank-3 .fdc-rank-badge {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.fdc-avatar-wrapper {
    flex-shrink: 0;
}
.fdc-avatar-wrapper img {
    border-radius: 50% !important;
    border: 1px solid #cbd5e1;
}
.fdc-athlete-profile-link {
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    transition: color 0.15s;
}
.fdc-athlete-profile-link:hover {
    color: #2563eb;
}
.fdc-table-cell-points strong {
    color: #0f172a;
    font-size: 14px;
}
.fdc-table-cell-remarks {
    font-size: 12px;
    color: #64748b;
}

/* Card badges pills for result cards */
.fdc-card-badge-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    border: 1px solid transparent;
}
.fdc-card-badge-pill.fdc-card-white {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}
.fdc-card-badge-pill.fdc-card-yellow {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}
.fdc-card-badge-pill.fdc-card-red {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

/* Actions buttons group in table */
.fdc-actions-btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}
.fdc-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 9px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.15s ease-in-out;
    line-height: 1.2;
}
.fdc-btn-action .fdc-btn-icon {
    font-size: 12px;
    line-height: 1;
}
.fdc-btn-action .fdc-btn-text {
    font-size: 11px;
}
.fdc-btn-edit-action {
    background: transparent;
    border-color: #cbd5e1;
    color: #475569;
}
.fdc-btn-edit-action:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}
.fdc-btn-delete-action {
    background: transparent;
    border-color: #fca5a5;
    color: #b91c1c;
}
.fdc-btn-delete-action:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Stacking and collapsing controls inside split grids or narrow containers */
.fdc-gender-tables-split .fdc-btn-action .fdc-btn-text {
    display: inline-block;
}
@media (max-width: 1300px) {
    .fdc-gender-tables-split .fdc-btn-action .fdc-btn-text {
        display: none;
    }
    .fdc-gender-tables-split .fdc-btn-action {
        padding: 0;
        border-radius: 50%;
        width: 28px;
        height: 28px;
    }
    .fdc-gender-tables-split .fdc-btn-action .fdc-btn-icon {
        font-size: 13px;
    }
}
@media (max-width: 768px) {
    /* When split tables stack to 100% width, we can show text again if space permits */
    .fdc-gender-tables-split .fdc-btn-action .fdc-btn-text {
        display: inline-block;
    }
    .fdc-gender-tables-split .fdc-btn-action {
        padding: 5px 9px;
        border-radius: 6px;
        width: auto;
        height: auto;
    }
}
@media (max-width: 580px) {
    /* Collapse again on smaller phone screens */
    .fdc-gender-tables-split .fdc-btn-action .fdc-btn-text {
        display: none;
    }
    .fdc-gender-tables-split .fdc-btn-action {
        padding: 0;
        border-radius: 50%;
        width: 28px;
        height: 28px;
    }
    .fdc-gender-tables-split .fdc-btn-action .fdc-btn-icon {
        font-size: 13px;
    }
}

/* Overall rankings */
.fdc-performance-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* =============================================
   SETTINGS CARD LAYOUT WITH LIVE PREVIEW WIDGET
   ============================================= */
.fdc-modern-btn-outline {
    background: transparent;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.fdc-modern-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.fdc-settings-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}
@media (max-width: 992px) {
    .fdc-settings-split-grid {
        grid-template-columns: 1fr;
    }
}
.fdc-settings-form-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.fdc-settings-group-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
    overflow: hidden;
}
.fdc-settings-group-header {
    background: #f8fafc;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fdc-settings-group-header h4 {
    margin: 0 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #334155;
}
.fdc-settings-group-body {
    padding: 15px 20px;
}
.fdc-color-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.fdc-color-row:last-child {
    border-bottom: none;
}
.fdc-color-desc {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 15px;
}
.fdc-color-label {
    font-weight: 600;
    font-size: 13.5px;
    color: #334155;
}
.fdc-color-subtext {
    font-size: 11.5px;
    color: #64748b;
}
.fdc-color-picker-input {
    width: 46px;
    height: 32px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

/* Simulator Panel Styling */
.fdc-settings-simulator-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(2, 6, 23, 0.02);
    padding: 20px;
}
.fdc-simulator-card-header {
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.fdc-simulator-card-header h4 {
    margin: 0 0 6px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b;
}
.fdc-simulator-card-header p {
    margin: 0 !important;
    font-size: 12px;
    color: #64748b;
}

/* Simulator mockup screen styling using preview variables */
.fdc-live-results-simulator {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #cbd5e1;
}
.sim-screen-container {
    background-color: var(--preview-bg, #121212);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background-color 0.2s ease;
}

/* Simulated elements matching color custom variables */
.sim-header {
    background-color: var(--preview-header-bg, #1e1e1e);
    padding: 16px;
    text-align: center;
    position: relative;
}
.sim-title {
    color: var(--preview-text, #e0e0e0);
    font-size: 15px;
    font-weight: 700;
}
.sim-meta {
    color: var(--preview-meta, #a0a0a0);
    font-size: 10px;
    margin-top: 4px;
}
.sim-nav-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--preview-accent, #4dabf7);
}
.sim-body {
    padding: 15px;
}
.sim-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.sim-tab {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--preview-meta, #a0a0a0);
    background: transparent;
    border-radius: 4px;
}
.sim-tab-active {
    background-color: var(--preview-accent, #4dabf7);
    color: #121212 !important;
}
.sim-content-box {
    background-color: var(--preview-content-bg, #1e1e1e);
    border: 1px solid var(--preview-border, #333333);
    border-radius: 6px;
    padding: 12px;
}
.sim-section-header {
    color: var(--preview-section-text, #4dabf7);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
}
.sim-table th {
    background-color: var(--preview-th-bg, #2d2d2d);
    color: var(--preview-th-text, #e0e0e0);
    font-weight: 600;
    padding: 6px 8px;
    border-bottom: 1px solid var(--preview-border, #333333);
    text-align: left;
}
.sim-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--preview-border, #333333);
    color: var(--preview-row-text, #e0e0e0);
    background-color: var(--preview-row-bg, #1e1e1e);
}
.sim-table tr:last-child td {
    border-bottom: none;
}
.sim-row-rank1 td {
    background-color: var(--preview-rank1-bg, #3e320a) !important;
    font-weight: 700;
}

/* ==========================================================================
   Organizer Dashboard & Modern Forms Redesign Styles
   ========================================================================== */

.fdc-modern-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    margin: 20px 0;
}

/* Dashboard Header Shell */
.fdc-dashboard-header-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(2,6,23,0.02);
}

.fdc-dashboard-header-block .fdc-header-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    color: #1e293b;
    font-weight: 800;
}

.fdc-dashboard-header-block .fdc-header-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* Segmented Navigation Control */
.fdc-dashboard-nav-segmented {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 2px;
}

.fdc-dashboard-nav-segmented .fdc-results-day-btn {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.fdc-dashboard-nav-segmented .fdc-results-day-btn:hover {
    color: #1e293b !important;
    background: rgba(226, 232, 240, 0.5) !important;
}

.fdc-dashboard-nav-segmented .fdc-results-day-btn.active {
    background: #ffffff !important;
    color: #0073aa !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

/* Competition Cards Grid */
.fdc-modern-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.fdc-modern-comp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(2,6,23,0.02);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.fdc-modern-comp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(2,6,23,0.08);
}

.fdc-comp-card-poster {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fdc-comp-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fdc-comp-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}

.fdc-comp-meta {
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1;
}

.fdc-comp-meta span.dashicons {
    color: #94a3b8;
}

/* Delete Icon overlay on card */
.fdc-delete-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}

.fdc-delete-icon:hover {
    background: rgba(220, 38, 38, 1) !important;
    transform: scale(1.1);
}

/* Calendar Visibility Toggle Widget */
.fdc-toggle-wrapper {
    position: relative;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}

.fdc-card-visibility-toggle {
    position: absolute;
    opacity: 0 !important;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0 !important;
}

.fdc-toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.fdc-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.fdc-card-visibility-toggle:checked + .fdc-toggle-track {
    background-color: #22c55e;
}

.fdc-card-visibility-toggle:checked ~ .fdc-toggle-thumb {
    transform: translateX(18px);
}

/* Form Grid & Card Components */
.fdc-modern-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.fdc-modern-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(2,6,23,0.02);
    overflow: hidden;
}

.fdc-form-card-header {
    background: #f8fafc;
    padding: 16px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fdc-step-num {
    background: #0f172a;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.fdc-form-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 !important;
}

.fdc-form-card-body {
    padding: 22px;
}

.fdc-modern-form-row {
    margin-bottom: 20px;
}

.fdc-modern-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}

.fdc-modern-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fdc-modern-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea.fdc-modern-form-input {
    min-height: 80px;
    resize: vertical;
}

select.fdc-modern-form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%252394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

/* Disciplines Planner Day Boxes */
.fdc-dashboard-day-disc {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.fdc-dashboard-day-disc h4 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
}

.fdc-disc-opts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.fdc-disc-opts label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.fdc-disc-opts label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.fdc-disc-opts label input[type="checkbox"] {
    margin: 0 !important;
}

/* Registered Athletes Management Layout */
.fdc-modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.fdc-modern-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border-bottom: 1.5px solid #e2e8f0;
    text-align: left;
}

.fdc-modern-table td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
}

.fdc-modern-table tr:last-child td {
    border-bottom: none;
}

.fdc-row-standard {
    transition: background-color 0.15s ease;
}

.fdc-row-standard:hover {
    background-color: #f8fafc;
}

/* Round Avatars */
.fdc-avatar-round {
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: block;
}

/* Small Custom Selector for Directory Forms */
.fdc-select-custom-small {
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    background-color: #ffffff;
    font-size: 12px;
    padding: 4px 20px 4px 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%252394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 6px center;
    background-repeat: no-repeat;
    background-size: 14px;
    cursor: pointer;
    min-width: 80px;
    outline: none;
    transition: border-color 0.15s ease;
}

.fdc-select-custom-small:focus {
    border-color: #3b82f6;
}

/* Athlete Profile Link */
.fdc-athlete-profile-link {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    transition: color 0.15s ease;
}

.fdc-athlete-profile-link:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

/* Custom badges/pills */
.fdc-card-badge-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Action button states */
.fdc-btn-action {
    transition: opacity 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
}

.fdc-btn-action:hover {
    opacity: 0.95;
}

.fdc-btn-action:active {
    transform: scale(0.97);
}

/* Live Results Sharing UI */
.fdc-live-results-card {
    transition: box-shadow 0.2s ease;
}

.fdc-live-results-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.04) !important;
}

.fdc-copy-link-container input[readonly] {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Archived badge style */
.fdc-badge-archived {
    background-color: #fffbeh !important;
    color: #d97706 !important;
    border: 1px solid #fef3c7 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.05) !important;
    position: absolute !important;
    top: 15px !important;
    z-index: 10 !important;
}

/* Alternating table row background colors */
.fdc-modern-table tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}
.fdc-modern-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

/* Athlete avatar bubble in performance result card */
.fdc-athlete-avatar-bubble {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15) !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    transform: scale(0) !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.fdc-athlete-avatar-bubble.is-visible {
    transform: scale(1) !important;
}
.fdc-athlete-avatar-bubble img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 50% !important;
}

/* =============================================
   UPCOMING COMPETITIONS & CALENDAR - Redesigned
   ============================================= */

:root {
    --fdc-primary: #0284c7;
    --fdc-primary-hover: #0369a1;
    --fdc-primary-light: #e0f2fe;
    --fdc-success: #10b981;
    --fdc-success-light: #ecfdf5;
    --fdc-warning: #f59e0b;
    --fdc-danger: #ef4444;
    --fdc-danger-light: #fef2f2;
    --fdc-text-main: #1e293b;
    --fdc-text-muted: #64748b;
    --fdc-bg-card: #ffffff;
    --fdc-bg-app: #f8fafc;
    --fdc-border: #e2e8f0;
    --fdc-border-hover: #cbd5e1;
    --fdc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --fdc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --fdc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --fdc-shadow-glow: 0 0 20px rgba(16, 185, 129, 0.2);
    --fdc-radius-sm: 8px;
    --fdc-radius-md: 12px;
    --fdc-radius-lg: 16px;
}

/* Hub Container */
.fdc-competitions-hub {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--fdc-text-main);
}

/* Section Title */
.fdc-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    border: none;
    padding: 0;
}

.fdc-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--fdc-primary-light);
    color: var(--fdc-primary);
    border-radius: var(--fdc-radius-sm);
}

.fdc-title-icon svg {
    width: 20px;
    height: 20px;
}

/* --- CALENDAR SECTION --- */
.fdc-calendar-section {
    margin-bottom: 50px;
}

.fdc-calendar-wrapper {
    position: relative;
    transition: opacity 0.3s ease;
}

.fdc-calendar-wrapper.fdc-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Calendar Navigation Header */
.fdc-calendar-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--fdc-border);
    border-radius: var(--fdc-radius-md);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--fdc-shadow-sm);
}

.fdc-year-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid var(--fdc-border);
    color: var(--fdc-text-main);
    padding: 10px 18px;
    border-radius: var(--fdc-radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: none;
}

.fdc-year-nav-btn:hover {
    background: var(--fdc-primary-light);
    border-color: #bae6fd;
    color: var(--fdc-primary);
    transform: translateY(-1px);
}

.fdc-year-nav-btn:active {
    transform: translateY(1px);
}

.fdc-chevron-icon {
    width: 18px;
    height: 18px;
}

.fdc-current-calendar-year {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
    position: relative;
}

.fdc-current-calendar-year::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: var(--fdc-primary);
    border-radius: 2px;
}

.fdc-year-nav-placeholder {
    width: 90px;
}

/* Calendar Grid */
.fdc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .fdc-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fdc-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fdc-calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Month Box */
.fdc-month-box {
    background: #ffffff;
    border: 1px solid var(--fdc-border);
    border-radius: var(--fdc-radius-md);
    box-shadow: var(--fdc-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fdc-month-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--fdc-shadow-md);
    border-color: var(--fdc-border-hover);
}

.fdc-month-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--fdc-border);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fdc-month-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fdc-month-year {
    font-size: 11px;
    font-weight: 700;
    color: var(--fdc-text-muted);
}

.fdc-month-events {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

.fdc-no-events {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    padding: 20px 0;
    flex-grow: 1;
    font-style: italic;
}

/* Mini Event Card */
.fdc-mini-event-card {
    position: relative;
    display: flex;
    gap: 10px;
    text-decoration: none !important;
    color: inherit !important;
    padding: 8px;
    border-radius: var(--fdc-radius-sm);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fdc-mini-event-card:hover {
    background: var(--fdc-primary-light);
    border-color: #bae6fd;
    transform: translateX(2px);
}

.fdc-mini-poster,
.fdc-mini-poster-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.fdc-mini-poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fdc-text-muted);
}

.fdc-mini-poster-placeholder svg {
    width: 20px;
    height: 20px;
}

.fdc-mini-info {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.fdc-mini-title {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 2px;
    transition: color 0.2s;
}

.fdc-mini-event-card:hover .fdc-mini-title {
    color: var(--fdc-primary-hover);
}

.fdc-mini-meta {
    font-size: 10px;
    color: var(--fdc-text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.fdc-mini-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.fdc-meta-icon {
    width: 11px;
    height: 11px;
    color: #94a3b8;
}

.fdc-mini-event-card:hover .fdc-meta-icon {
    color: var(--fdc-primary);
}

.fdc-meta-country {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- LIST VIEW --- */
.fdc-list-section {
    margin-top: 20px;
}

.fdc-modern-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* List Item Card */
.fdc-list-item-card {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--fdc-border);
    border-radius: var(--fdc-radius-lg);
    overflow: hidden;
    box-shadow: var(--fdc-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fdc-list-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fdc-shadow-lg);
    border-color: var(--fdc-border-hover);
}

.fdc-list-poster-wrap {
    width: 180px;
    position: relative;
    flex-shrink: 0;
    background: #f1f5f9;
    overflow: hidden;
}

.fdc-list-poster {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

.fdc-list-item-card:hover .fdc-list-poster {
    transform: scale(1.05);
}

.fdc-list-poster-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
}

.fdc-list-poster-placeholder svg {
    width: 48px;
    height: 48px;
}

.fdc-list-regulation {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fdc-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* Main Info inside Card */
.fdc-list-main-info {
    flex-grow: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fdc-list-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.fdc-list-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fdc-list-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.fdc-list-title a {
    text-decoration: none !important;
    color: #0f172a !important;
    transition: color 0.2s;
}

.fdc-list-title a:hover {
    color: var(--fdc-primary);
}

.fdc-list-type {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.fdc-list-type.type-indoor {
    background: var(--fdc-primary-light);
    color: var(--fdc-primary);
}

.fdc-list-type.type-depth {
    background: #e0f2fe;
    color: #0369a1;
}

/* Metadata Grid */
.fdc-list-grid-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    background: #f8fafc;
    border-radius: var(--fdc-radius-md);
    padding: 16px 20px;
    border: 1px solid #f1f5f9;
}

.fdc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fdc-meta-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fdc-text-muted);
    letter-spacing: 0.5px;
}

.fdc-meta-label svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.fdc-meta-val {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.fdc-deadline-text {
    color: var(--fdc-danger) !important;
}

/* Actions */
.fdc-list-actions {
    display: flex;
    gap: 12px;
}

.fdc-list-actions .fdc-button {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--fdc-radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.fdc-list-actions .fdc-button-primary {
    background: linear-gradient(135deg, var(--fdc-primary) 0%, var(--fdc-primary-hover) 100%);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.fdc-list-actions .fdc-button-primary:hover {
    background: linear-gradient(135deg, var(--fdc-primary-hover) 0%, #0284c7 100%);
    box-shadow: 0 6px 12px rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
}

.fdc-list-actions .fdc-button-secondary {
    background: #ffffff;
    border: 1px solid var(--fdc-border);
    color: var(--fdc-text-main);
}

.fdc-list-actions .fdc-button-secondary:hover {
    background: #f8fafc;
    border-color: var(--fdc-border-hover);
    transform: translateY(-1px);
}

/* Responsive List Card */
@media (max-width: 768px) {
    .fdc-list-item-card {
        flex-direction: column;
    }
    
    .fdc-list-poster-wrap {
        width: 100% !important;
        height: 200px !important;
        overflow: hidden !important;
    }
    
    .fdc-list-main-info {
        padding: 20px;
    }
    
    .fdc-list-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .fdc-list-grid-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .fdc-list-actions {
        flex-direction: column;
    }
    
    .fdc-list-actions .fdc-button {
        text-align: center;
    }
}

/* --- ONGOING / LIVE EVENTS STYLING & ANIMATION --- */

/* Pulse Ring Animation keyframes */
@keyframes fdc-live-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes fdc-live-pulse-danger {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes fdc-glow-animation {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 0 15px rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 8px 16px -1px rgba(0, 0, 0, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 0 25px rgba(16, 185, 129, 0.35);
        border-color: rgba(16, 185, 129, 0.6);
    }
}

/* Calendar Card Ongoing Highlight */
.fdc-mini-event-card.fdc-ongoing-event {
    background: var(--fdc-success-light) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.fdc-mini-event-card.fdc-ongoing-event:hover {
    border-color: var(--fdc-success) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.fdc-mini-event-card.fdc-ongoing-event .fdc-mini-title {
    color: #065f46 !important;
}

/* Ongoing Dot Indicator in Calendar */
.fdc-ongoing-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--fdc-success);
    border-radius: 50%;
    display: inline-block;
}

.fdc-pulse-ring {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: fdc-live-pulse 1.8s infinite ease-in-out;
}

/* List Card Ongoing Highlight */
.fdc-list-item-card.fdc-list-item-ongoing {
    animation: fdc-glow-animation 3s infinite ease-in-out;
    border-width: 1.5px;
}

/* LIVE NOW Badge */
.fdc-live-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--fdc-danger);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.fdc-live-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    animation: fdc-live-pulse-danger 1.5s infinite ease-in-out;
}

.fdc-ongoing-text-indicator {
    font-size: 11px;
    font-weight: 700;
    color: var(--fdc-danger);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fdc-ongoing-text-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--fdc-danger);
    border-radius: 50%;
    animation: fdc-live-pulse-danger 1.5s infinite ease-in-out;
}

/* =============================================
   HEADER OVERRIDES FOR PLUGIN PAGES
   ============================================= */
body.fdc-view-page header,
body.fdc-view-page .site-header,
body.fdc-view-page #site-header,
body.fdc-view-page .elementor-header,
body.fdc-view-page .elementor-location-header {
    background: #020617 !important;
    position: relative !important;
    top: 0 !important;
    z-index: 9999 !important;
    margin-top: 0 !important;
}

body.fdc-view-page {
    background-color: #f8fafc;
}

body.fdc-view-page .fdc-competition-details,
body.fdc-view-page .fdc-athlete-profile {
    margin-top: 40px !important;
}

/* Responsive adjustments for podiums in hero */
@media (max-width: 1024px) {
    .fdc-details-hero-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }
    
    .fdc-details-hero-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .fdc-details-hero-podiums {
        margin-left: 0 !important;
        margin-top: 15px !important;
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        align-items: flex-end !important;
    }
}

@media (max-width: 580px) {
    .fdc-details-hero-content {
        padding: 30px 20px !important;
    }

    .fdc-details-hero-poster {
        width: 110px !important;
        max-height: 160px !important;
    }

    .fdc-details-hero-title {
        font-size: 26px !important;
    }

    .fdc-details-hero-podiums {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
}
/* Other Athletes Link / Button */
.fdc-other-athletes-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: rgba(14, 165, 233, 0.12) !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    border-radius: 20px !important;
    color: #38bdf8 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
}

.fdc-other-athletes-link:hover {
    background: rgba(14, 165, 233, 0.25) !important;
    border-color: rgba(14, 165, 233, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.2) !important;
}

.fdc-other-athletes-link:active {
    transform: translateY(0) !important;
}

.fdc-other-athletes-link .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =============================================
   COUNTRY ATHLETES LISTING PAGE
   ============================================= */
.fdc-country-athletes-view {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    margin-bottom: 40px;
}

/* Header */
.fdc-country-header {
    position: relative;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%) !important;
    border-radius: 16px;
    padding: 30px 40px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 35px rgba(2, 6, 23, 0.15);
}

.fdc-country-header-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15) 0%, rgba(2, 6, 23, 0) 70%) !important;
    pointer-events: none;
}

.fdc-country-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.4) 100%) !important;
    pointer-events: none;
}

.fdc-country-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fdc-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.fdc-back-btn:hover {
    color: #38bdf8 !important;
}

.fdc-country-title-wrap {
    display: flex;
    align-items: center;
    gap: 25px;
}

.fdc-country-header-flag {
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.fdc-country-info {
    flex: 1;
}

.fdc-country-name {
    color: #fff !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
    font-family: 'Outfit', sans-serif !important;
}

.fdc-country-subtitle {
    color: #38bdf8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Filters Bar */
.fdc-athletes-filters-bar {
    background: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.02);
}

.fdc-sort-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.fdc-sort-label {
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fdc-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.fdc-sort-link:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

.fdc-sort-link.active {
    background: #0284c7;
    color: #fff !important;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* Athlete Cards Grid */
.fdc-athletes-country-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.fdc-athlete-country-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(2, 6, 23, 0.03) !important;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.fdc-athlete-country-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.fdc-card-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
}

.fdc-athlete-country-card.has-points .fdc-card-top-accent {
    background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%);
}

.fdc-athlete-card-avatar-wrap {
    position: relative !important;
    margin-bottom: 16px !important;
    margin-top: 6px !important;
}

.fdc-athlete-card-avatar-wrap .avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.fdc-athlete-country-card.has-points .fdc-athlete-card-avatar-wrap .avatar {
    border-color: #e0f2fe !important;
}

.fdc-athlete-card-avatar-wrap .fdc-rank-badge {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    background: #fbbf24 !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}

.fdc-athlete-card-name {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
}

.fdc-athlete-card-name a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.fdc-athlete-card-name a:hover {
    color: #0284c7 !important;
}

.fdc-athlete-card-score {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.fdc-score-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    letter-spacing: 0.5px !important;
}

.fdc-score-val {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
}

.fdc-athlete-country-card.no-points .fdc-score-val {
    color: #94a3b8 !important;
}

.fdc-athlete-card-results {
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 !important;
}

.fdc-results-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
}

.fdc-no-results-text {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-style: italic !important;
}

.fdc-results-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.fdc-result-pill-link {
    display: inline-block !important;
    padding: 4px 10px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    transition: all 0.2s;
}

.fdc-result-pill-link:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Specific body style override for country listing */
body.fdc-view-country-athletes header,
body.fdc-view-country-athletes .site-header,
body.fdc-view-country-athletes #site-header,
body.fdc-view-country-athletes .elementor-header,
body.fdc-view-country-athletes .elementor-location-header {
    background: #020617 !important;
    position: relative !important;
    top: 0 !important;
    z-index: 9999 !important;
    margin-top: 0 !important;
}

body.fdc-view-country-athletes .fdc-country-athletes-view {
    margin-top: 40px !important;
}

/* Responsive country page */
@media (max-width: 768px) {
    .fdc-country-header {
        padding: 24px 20px !important;
    }
    .fdc-country-title-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .fdc-country-header-flag {
        width: 60px !important;
        height: auto !important;
    }
    .fdc-country-name {
        font-size: 24px !important;
    }
    .fdc-athletes-filters-bar {
        padding: 12px 16px !important;
    }
    .fdc-athletes-country-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   ATHLETE PROFILE RESULTS CARD STYLING & RESPONSIVENESS
   ============================================= */

/* Discipline Badge & Title Improvements */
.fdc-discipline-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2) !important;
    display: inline-block !important;
    margin-right: 12px !important;
}

.fdc-discipline-name {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Mobile results cards - hidden on desktop */
.fdc-mobile-results-cards {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

/* Desktop results only */
.fdc-desktop-results-only {
    display: block;
}

/* Mobile Result Card Styling */
.fdc-mobile-result-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: left !important;
}

/* Left colored accent border based on card color */
.fdc-mobile-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.fdc-m-card-white::before {
    background-color: #cbd5e1 !important;
}
.fdc-m-card-yellow::before {
    background-color: #facc15 !important;
}
.fdc-m-card-red::before {
    background-color: #ef4444 !important;
}

/* Header */
.fdc-m-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 10px !important;
}

.fdc-m-card-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.fdc-m-card-date {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Card badges */
.fdc-m-card-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
}

.fdc-m-badge-white {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.fdc-m-badge-yellow {
    background: #fef9c3 !important;
    color: #854d0e !important;
    border: 1px solid #fef08a !important;
}

.fdc-m-badge-red {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

/* Body */
.fdc-m-card-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.fdc-m-comp-link {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.fdc-m-comp-link:hover {
    color: #0369a1 !important;
}

/* Grid of Metrics */
.fdc-m-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    padding: 10px !important;
    border: 1px solid #f1f5f9 !important;
}

.fdc-m-metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.fdc-m-label {
    font-size: 10px !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
}

.fdc-m-val {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.fdc-m-val.fdc-rp-val {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

.fdc-m-val.fdc-pts-val {
    color: #10b981 !important;
    font-weight: 700 !important;
}

/* Footer */
.fdc-m-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 8px !important;
    font-size: 11px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.fdc-m-penalty {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

.fdc-m-remark {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Responsive switches for results display */
@media (max-width: 768px) {
    .fdc-desktop-results-only {
        display: none !important;
    }
    .fdc-mobile-results-cards {
        display: flex !important;
    }
}

/* Prevent athlete avatar image distortion and squishing in table lists */
.fdc-athlete-cell .avatar,
.fdc-athlete-cell img.avatar,
.fdc-athlete-cell .avatar-32 {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

/* Ensure adjacent flex items in athlete cells also do not shrink or distort */
.fdc-athlete-cell .fdc-rank-badge {
    flex-shrink: 0 !important;
}

.fdc-athlete-cell .fdc-flag {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 14px !important;
    object-fit: contain !important;
}


