/* Club profile and club-manager pages. */

.club-hero-crest {
    background: #fff;
    padding: 10px;
}

.club-page-content {
    padding-top: 0;
}

.club-compact-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.club-form-chart {
    position: relative;
    height: 200px;
    width: 100%;
}

.club-table-logo {
    width: 20px;
}

.captaincy-badge {
    color: #333;
    font-size: .7rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: 700;
}

.captaincy-badge-captain {
    background: #f1c40f;
}

.captaincy-badge-vice {
    background: #bdc3c7;
}

.captaincy-badge-alt {
    background: #ecf0f1;
    color: #7f8c8d;
}

.club-shop-sub-tabs {
    margin-bottom: 2rem;
}

.fixture-logo-stack {
    display: flex;
    gap: 5px;
}

.fixture-stack-logo {
    width: 40px;
    height: 40px;
}

.fixture-stack-logo-overlap {
    margin-left: -15px;
    border: 2px solid #fff;
}

.club-confirm-modal {
    max-width: 430px;
    border-radius: 14px;
}

.quick-ticket-modal-content {
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

.club-modal-body {
    padding: 20px;
}

.club-confirm-message {
    margin-top: 0;
    color: #475569;
}

.club-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.quick-ticket-match-info {
    text-align: center;
    margin-bottom: 20px;
}

.quick-ticket-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.quick-ticket-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.quick-ticket-versus {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ccc;
}

.quick-ticket-title {
    margin: 0;
    color: #2c3e50;
}

.quick-ticket-details {
    margin: 5px 0;
    font-size: .85rem;
    color: #7f8c8d;
}

.quick-ticket-wallet-strip {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
}

.quick-ticket-wallet-strip span {
    font-size: .85rem;
    color: #666;
    font-weight: 600;
}

.quick-ticket-wallet-strip strong,
.quick-ticket-tier strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.quick-ticket-loading {
    text-align: center;
    padding: 30px;
}

.quick-ticket-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.quick-ticket-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
}

.quick-ticket-tier h4 {
    margin: 0;
    font-size: 1rem;
}

.quick-ticket-tier small {
    color: #888;
    display: block;
    margin: 2px 0;
}

.quick-ticket-buy-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.quick-ticket-quantity {
    width: 50px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.club-switcher-compact {
    margin-top: 5px;
}

.club-switch-select {
    padding: 5px;
    border-radius: 5px;
    border: 0;
    background: rgba(255,255,255,.9);
    color: #333;
    font-weight: 700;
    cursor: pointer;
}

.registration-status-card {
    border-left: 5px solid #2ecc71;
}

.registration-status-card.is-suspended {
    border-left-color: #e74c3c;
}

.registration-status-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.registration-status-main {
    flex: 1;
    min-width: 300px;
}

.registration-status-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2ecc71;
}

.registration-status-card.is-suspended .registration-status-label {
    color: #e74c3c;
}

.registration-status-message {
    margin: 5px 0;
    color: #666;
}

.registration-progress {
    margin-top: 10px;
}

.registration-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    margin-bottom: 5px;
    color: #555;
}

.registration-progress-track {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.registration-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 10px;
    background-color: #2ecc71;
}

.registration-status-card.is-suspended .registration-progress-fill {
    background-color: #e74c3c;
}

.stat-icon-blue {
    background: rgba(52, 152, 219, .1);
    color: #3498db;
}

.stat-icon-purple {
    background: rgba(155, 89, 182, .1);
    color: #9b59b6;
}

.stat-icon-red {
    background: rgba(231, 76, 60, .1);
    color: #e74c3c;
}

.stat-icon-amber {
    background: rgba(243, 156, 18, .1);
    color: #f39c12;
}

.stat-icon-green {
    background: rgba(46, 204, 113, .1);
    color: #2ecc71;
}

.stat-icon-indigo {
    background: rgba(37, 99, 235, .1);
    color: #2563eb;
}

.stat-icon-sky {
    background: rgba(14, 165, 233, .1);
    color: #0284c7;
}

.stat-value-positive {
    color: #2ecc71;
}

.club-wallet-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.club-wallet-alert-icon {
    font-size: 1.5rem;
}

.club-wallet-alert p {
    margin: 5px 0 0;
    font-size: .9rem;
}

.club-wallet-alert-action {
    margin-left: auto;
    white-space: nowrap;
    padding: 8px 15px;
}

.club-wallet-actions {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.club-wallet-balance-info {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.club-wallet-balance-info div {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.club-wallet-balance-info small {
    color: #666;
}

.registration-payment-card {
    border: 1px solid #e0e0e0;
    background: #fff;
}

.registration-payment-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.registration-payment-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.registration-payment-panel p {
    margin: 5px 0;
}

.registration-payment-remaining {
    margin-bottom: 15px;
}

.registration-payment-remaining strong {
    color: #e74c3c;
}

.registration-payment-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.registration-payment-field {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.registration-payment-field label {
    font-size: .9rem;
}

.transactions-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.transactions-title {
    margin-bottom: 0;
}

.pdf-download-button {
    background-color: #e74c3c;
    color: #fff;
    border: 0;
    cursor: pointer;
}

.transaction-source-badge {
    background: #eee;
    color: #333;
}

.club-manager-modal {
    max-width: 450px;
}

.withdraw-breakdown {
    margin-top: 10px;
    font-size: .9rem;
    color: #666;
    display: none;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.withdraw-breakdown > div {
    display: flex;
    justify-content: space-between;
}

.withdraw-fee-row {
    color: #e74c3c;
}

.withdraw-net-row {
    font-weight: 700;
    border-top: 1px solid #ddd;
    margin-top: 5px;
    padding-top: 5px;
}

.topup-modal-body {
    padding: 20px;
    text-align: center;
}

.topup-instructions {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.topup-instructions p {
    margin: 0 0 10px;
    font-weight: 600;
    color: #1e40af;
}

.topup-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.topup-instructions li {
    margin-bottom: 8px;
}

.topup-wallet-link {
    width: 100%;
    text-decoration: none;
    display: inline-block;
    padding: 12px;
}

.payment-confirmation-modal,
.payment-success-modal {
    max-width: 400px;
}

.payment-success-modal {
    text-align: center;
}

.payment-confirmation-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.payment-confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.payment-success-body {
    padding: 40px 20px;
}

.payment-success-icon {
    width: 70px;
    height: 70px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payment-success-icon i {
    font-size: 35px;
    color: #28a745;
}

.payment-success-body h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.payment-success-body p {
    margin-bottom: 25px;
    color: #7f8c8d;
}

.club-toast-icon {
    margin-right: 10px;
}

.achievement-gold {
    border-left-color: #f1c40f;
}

.achievement-gold .achievement-icon,
.achievement-gold .achievement-title {
    color: #f1c40f;
}

.achievement-silver {
    border-left-color: #bdc3c7;
}

.achievement-silver .achievement-icon,
.achievement-silver .achievement-title {
    color: #bdc3c7;
}

.achievement-bronze {
    border-left-color: #cd7f32;
}

.achievement-bronze .achievement-icon,
.achievement-bronze .achievement-title {
    color: #cd7f32;
}

.achievement-copper {
    border-left-color: #b87333;
}

.achievement-copper .achievement-icon,
.achievement-copper .achievement-title {
    color: #b87333;
}

/* Club public page extracted styles. */
/* Re-using styles from player.php for consistency */

.player-hero {

    min-height: 300px;

    background-size: cover;

    background-position: center;

    background: var(--hero-gradient);

    position: relative;

    display: flex;

    align-items: flex-end;

    padding: 28px;

    color: var(--hero-text-color, #fff);

    border-radius: 0 0 18px 18px;

    margin-bottom: 0;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    
    overflow: hidden;

}

.player-hero-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(135deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.26) 48%, rgba(15,23,42,0.44) 100%);

    border-radius: 0 0 18px 18px;

    z-index: 1;

}

.player-hero-content {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 20px;

    width: 100%;

}

.player-hero-info {
    min-width: 0;
    flex: 1;
}

.player-profile-picture img {

    width: 132px;

    height: 132px;

    border: 4px solid white;

    object-fit: contain;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    border-radius: 50%;

}

.player-hero-info h1 {

    margin: 0 0 5px 0;

    font-size: 2.2rem;

    font-weight: 800;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

}

.player-current-team {

    display: flex;

    align-items: center;

    gap: 8px;

    background: var(--hero-chip-bg, rgba(255, 255, 255, 0.2));

    padding: 5px 12px;

    border-radius: 20px;

    backdrop-filter: blur(5px);

    width: fit-content;

    text-decoration: none;

    color: var(--hero-chip-text, #fff);

}

.club-context-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.club-context-row span,
.club-season-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--hero-chip-bg, rgba(255, 255, 255, 0.14));
    color: var(--hero-chip-text, #fff);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.player-overall-rating {

    background: var(--hero-rank-bg, #fff);

    color: var(--hero-rank-text, var(--primary-color));

    padding: 10px;

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    min-width: 74px;

}

.rating-value { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }

.rating-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #888; }

.main-tabs { display: flex; overflow-x: auto; background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 0 10px; margin-bottom: 20px; }

.tab-link { flex: 0 0 auto; padding: 15px 20px; color: #64748b; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.2s; }

.tab-link.active { color: var(--secondary-color); border-bottom-color: var(--secondary-color); }

.tab-content { display: none; animation: fadeIn 0.3s ease; }

.tab-content.active { display: block; }

.player-section-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); margin-bottom: 20px; border: 1px solid #f1f5f9; }

.club-season-filter {
    justify-content: flex-end;
    width: fit-content;
    margin: 0 0 18px auto;
    border-color: var(--border-color, #e2e8f0);
    background: var(--card-bg, #fff);
    color: var(--text-color, #1e293b);
    border-radius: 10px;
}

.club-season-filter label {
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.club-season-filter select {
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    outline: none;
}

.section-title { font-size: 1.2rem; font-weight: 700; margin-top: 0; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }

.stats-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }

.stat-card { background: #f8fafc; padding: 1rem; border-radius: 8px; text-align: center; }

.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; }

.stat-card .stat-label { font-size: 0.8rem; color: #777; }

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.table-card {
    border-radius: 12px;
    overflow: visible;
    border: 1px solid #f1f5f9;
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-scroll {
    max-width: 100%;
    overflow-y: visible;
    border-radius: 12px;
}

.styled-table {
    min-width: 620px;
    font-size: 0.9rem;
}

.styled-table th,
.styled-table td {
    padding: 10px 12px;
}

.styled-table.mini {
    min-width: 360px;
}

.styled-table thead th {
    z-index: 6;
}

.styled-table th.sticky-col,
.styled-table td.sticky-col {
    position: -webkit-sticky !important;
    position: sticky !important;
    background-color: var(--card-bg, #fff) !important;
    z-index: 2;
}

.styled-table thead th.sticky-col {
    background-color: #f8fafc !important;
    z-index: 8;
}

.styled-table tbody tr:nth-of-type(even) .sticky-col {
    background-color: #f9fafb !important;
}

.styled-table tbody tr:hover .sticky-col {
    background-color: #f8fafc !important;
}

.styled-table tbody tr.highlighted-row .sticky-col {
    background-color: #fff7ed !important;
}

.styled-table .sticky-col-rank {
    left: 0;
    min-width: 40px;
    width: 40px;
    max-width: 40px;
    text-align: center;
    z-index: 3;
}

.styled-table .sticky-col-club {
    left: 40px;
    min-width: 150px;
    max-width: 170px;
    z-index: 2;
}

.styled-table .team-name-cell {
    text-align: left;
    font-weight: 700;
}

.table-club-link,
.styled-table .team-name-cell {
    display: table-cell !important;
    vertical-align: middle;
}

.table-club-link {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.table-club-link span,
.styled-table .team-name-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.styled-table .table-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.fixture-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 820px; margin: 0 auto; }

.fixture-item { display: block; width: 100%; background: var(--card-bg, #fff); padding: 1rem; border-radius: 12px; border: 1px solid var(--border-color, #f1f5f9); text-decoration: none; color: var(--text-color, #1e293b); transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 8px rgba(15,23,42,0.05); overflow: hidden; }

.fixture-item:hover { transform: translateY(-2px); border-color: var(--primary-color, #3498db); box-shadow: 0 5px 15px rgba(15,23,42,0.1); }

.match-main-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }

.fixture-item .team { min-width: 0; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; color: inherit; }

.fixture-item .home-team { justify-content: flex-end; text-align: right; }

.fixture-item .away-team { justify-content: flex-start; text-align: left; }

.fixture-item .team-name { min-width: 0; max-width: min(180px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fixture-item .team-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }

.fixture-center { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 92px; }

.competition-label { max-width: 120px; color: #64748b; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fixture-item .score-box { background: #f8fafc; padding: 6px 12px; border-radius: 8px; font-weight: bold; min-width: 92px; text-align: center; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e2e8f0; }

.fixture-item .score { font-size: 1.1rem; font-weight: 800; color: #37003c; line-height: 1.1; }

.fixture-item .status-label { margin-top: 3px; color: #64748b; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }

.fixture-item .time-box .time { font-size: 1rem; color: var(--text-color, #2c3e50); font-weight: 700; }

.fixture-item .time-box .date { font-size: 0.65rem; color: #7f8c8d; font-weight: 700; margin-top: 3px; text-transform: uppercase; }

.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.achievement-card { display: flex; align-items: center; gap: 15px; background: #f8fafc; padding: 20px; border-radius: 8px; border-left: 5px solid #f1c40f; }

.achievement-icon .fa-trophy { font-size: 2.5rem; color: #f1c40f; }

.achievement-details { display: flex; flex-direction: column; }

.achievement-title { font-weight: bold; font-size: 1.1rem; }

.achievement-competition { font-size: 0.9rem; }

.achievement-meta { font-size: 0.8rem; color: #777; }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.shop-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}

.shop-alert a {
    margin-left: auto;
    color: inherit;
    text-decoration: underline;
}

.shop-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.shop-alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f8fafc;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 2rem;
}

.product-gallery-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.product-gallery-strip img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.product-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.product-summary {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.45;
    min-height: 40px;
}

.badge {
    padding: 4px 10px;
    background: #eef2ff;
    color: #312e81;
    border-radius: 999px;
    font-size: 0.8rem;
}

.meta {
    margin: 6px 0;
    color: #475569;
    font-size: 0.9rem;
}

.product-price {
    margin: 16px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
}

.product-detail-content {
    width: min(1040px, calc(100vw - 28px));
    max-height: 92vh;
    overflow: auto;
    padding: 0;
    border-radius: 14px;
}

.product-detail-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    background: rgba(255,255,255,.92);
    border-radius: 999px;
    width: 36px;
    height: 36px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 0;
}

.product-detail-stack {
    display: grid;
    grid-template-columns: 1fr;
}

.product-detail-media {
    background: #f8fafc;
    padding: 18px;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #eef2f7;
}

.product-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.product-detail-thumbs button {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.product-detail-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.product-detail-info {
    padding: 28px;
}

.product-detail-info h3 {
    margin: 12px 0 8px;
    font-size: 1.7rem;
    color: #0f172a;
}

.product-detail-price {
    font-size: 1.65rem;
}

.product-checkout-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.product-card form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.product-buy-details {
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.product-buy-details summary {
    list-style: none;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 11px 18px;
    font-weight: 800;
}

.product-buy-details summary::-webkit-details-marker {
    display: none;
}

.product-buy-details[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.product-buy-details form {
    padding: 12px;
}

.product-card input,
.product-card select,
.product-card textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 10px;
}

.shop-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.shop-category-filter a {
    text-decoration: none;
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .86rem;
}

.shop-category-filter a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.shipping-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
}

.shipping-details summary {
    cursor: pointer;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.message.info {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 12px;
    color: #3730a3;
    border-radius: 8px;
}

    /* Sub-tabs for Shop */
    .sub-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
    .sub-tab-link { padding: 8px 16px; background: #f1f5f9; border-radius: 20px; text-decoration: none; color: #555; font-size: 0.85rem; font-weight: 700; white-space: nowrap; transition: all 0.2s; }
    .sub-tab-link.active { background: var(--primary-color); color: white; }
    
    /* Fixture Grid for Tickets */
    .fixtures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
    .fixture-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
    .fixture-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
    .team-logo { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
    .fixture-info h3 { margin: 0 0 5px 0; color: var(--primary-color); font-size: 1.1rem; }
    .fixture-meta { display: flex; flex-direction: column; color: #666; font-size: 0.85rem; }
    .fixture-stats { display: flex; justify-content: space-between; margin: 15px 0; padding: 10px 0; border-top: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1; }
    .stat { text-align: center; }
    .stat-label { display: block; font-size: 0.75rem; color: #999; text-transform: uppercase; }
    .stat-value { display: block; font-size: 1.1rem; font-weight: 700; color: #333; }
.btn-block { width: 100%; display: block; }

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-info {
        padding: 18px;
    }

    .product-detail-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .player-hero {
        min-height: 360px;
        padding: 18px;
    }

    .player-hero-content {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .player-profile-picture img {
        width: 104px;
        height: 104px;
    }

    .player-hero-info h1 {
        font-size: 1.7rem;
    }

    .player-current-team,
    .club-context-row {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .player-overall-rating {
        min-width: 68px;
    }

    .club-season-filter {
        width: 100%;
        justify-content: space-between;
    }

    .fixture-list {
        max-width: 100%;
    }

    .fixture-item {
        padding: 0.85rem;
    }

    .match-main-row {
        gap: 8px;
    }

    .fixture-item .team {
        gap: 6px;
        font-size: 0.82rem;
    }

    .fixture-item .team-logo {
        width: 24px;
        height: 24px;
    }

    .fixture-center {
        min-width: 74px;
    }

    .competition-label {
        max-width: 88px;
        font-size: 0.58rem;
    }

    .fixture-item .score-box {
        min-width: 74px;
        padding: 5px 8px;
    }

    .fixture-item .score {
        font-size: 1rem;
    }

    .fixture-item .time-box .time {
        font-size: 0.9rem;
    }

    .fixture-item .time-box .date,
    .fixture-item .status-label {
        font-size: 0.58rem;
    }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* Club manager dashboard extracted styles. */
/* Ensure modal is hidden by default */
.modal { display: none; }

/* --- Tab System Fixes --- */
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Hero & Navigation Layout --- */
.team-dashboard-hero { background: linear-gradient(135deg, var(--club-home-color, #1f2937), var(--club-alternative-color, #2563eb)); color: var(--club-hero-text-color, #fff); padding: 6rem 20px 3rem 20px; border-radius: 0 0 30px 30px; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-top: 0; }
.hero-content-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.team-identity { display: flex; align-items: center; gap: 20px; }
.hero-team-logo { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.team-details h1 { margin: 0; font-size: 2.2rem; line-height: 1.2; }
.manager-badge { display: inline-block; background: var(--club-hero-chip-bg, rgba(255,255,255,.2)); color: var(--club-hero-chip-text, #fff); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; margin-top: 5px; backdrop-filter: blur(5px); }

.hero-stats-strip { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; margin-top: 25px; }
.stat-box { background: rgba(255,255,255,0.1); padding: 10px 15px; border-radius: 8px; flex: 1; min-width: 100px; text-align: center; display: flex; flex-direction: column; border: none; }
.stat-box .label { font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-box .value { font-size: 1.3rem; font-weight: bold; margin-top: 2px; }

.dashboard-nav-bar { display: flex; gap: 5px; background: rgba(0,0,0,0.2); overflow-x: auto; white-space: nowrap; padding: 5px; border-radius: 30px; margin-top: 30px; border-bottom: none; }
.nav-tab { flex: 1; text-align: center; padding: 8px 20px; color: rgba(255,255,255,0.7); text-decoration: none; border-radius: 25px; font-size: 0.9rem; transition: all 0.2s; white-space: nowrap; border-bottom: none; font-weight: normal; }
.nav-tab:hover { color: white; background: rgba(255,255,255,0.1); border-radius: 25px; }
.nav-tab.active { background: #fff; color: var(--primary-color, #3498db); font-weight: bold; border-radius: 25px; border-bottom: none; }

/* --- Dashboard Grid & Cards --- */
.stats-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; }
.stat-card { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; gap: 20px; text-align: left; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.stat-icon-wrapper { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-content { flex: 1; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: #2c3e50; margin-bottom: 2px; line-height: 1.2; }
.stat-card .stat-label { color: #95a5a6; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* --- Lists & Actions --- */
.fixture-list { display: flex; flex-direction: column; gap: 12px; }
.fixture-item { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 20px; border-radius: 8px; border: 1px solid #eee; text-decoration: none; color: inherit; transition: all 0.2s; }
.fixture-item:hover { transform: translateX(5px); border-left: 4px solid var(--primary-color, #3498db); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.fixture-item .team { flex: 1; font-weight: 600; font-size: 1.05rem; }
.fixture-item .home-team { text-align: right; }
.fixture-item .away-team { text-align: left; }
.fixture-item .score-box, .fixture-item .time-box { margin: 0 25px; background: #f8f9fa; padding: 8px 15px; border-radius: 8px; font-weight: bold; min-width: 100px; text-align: center; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e9ecef; }
.fixture-item .time-box .time { font-size: 1.1rem; color: #2c3e50; }
.fixture-item .time-box .date { font-size: 0.75rem; color: #7f8c8d; font-weight: normal; margin-top: 2px; }

.quick-actions-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.action-item { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; padding: 25px 15px; border-radius: 8px; border: 1px solid #eee; text-decoration: none; color: #34495e; transition: all 0.2s; gap: 12px; text-align: center; cursor: pointer; height: 100%; }
.action-item:hover { border-color: var(--primary-color, #3498db); color: var(--primary-color, #3498db); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.action-item i { font-size: 1.8rem; margin-bottom: 5px; color: var(--primary-color, #3498db); }
.action-item span { font-weight: 500; }
.section-subtitle { margin: 4px 0 0; color: #64748b; font-size: .92rem; }
.club-command-grid, .finance-breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.command-card, .finance-breakdown-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.command-card:hover, .finance-breakdown-card:hover { transform: translateY(-2px); border-color: var(--primary-color, #3498db); box-shadow: 0 12px 24px rgba(15,23,42,.1); }
.command-card span, .finance-breakdown-card i { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: #eef2ff; color: #3730a3; font-size: 1rem; }
.command-card strong, .finance-breakdown-card strong { font-size: 1.25rem; color: #111827; }
.command-card small, .finance-breakdown-card small, .finance-breakdown-card span { color: #64748b; line-height: 1.35; }
.command-card.needs-attention { border-color: #f59e0b; background: #fffbeb; }
.finance-health-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}
.finance-health-panel h3 { margin: 8px 0 4px; font-size: 2rem; color: #0f172a; }
.finance-health-panel p { margin: 0; color: #64748b; }
.health-label { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.health-label.positive { background: #dcfce7; color: #166534; }
.health-label.warning { background: #fef3c7; color: #92400e; }
.health-metrics { display: grid; gap: 10px; }
.health-metrics div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; color: #64748b; }
.health-metrics strong { color: #111827; }
.finance-command-section { border-top: 4px solid var(--primary-color, #3498db); }
.finance-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.finance-summary-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 6px 18px rgba(15,23,42,.05); }
.finance-summary-card span { color: #64748b; font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.finance-summary-card strong { color: #0f172a; font-size: 1.45rem; }
.finance-summary-card small { color: #64748b; }
.finance-summary-card.positive { border-left: 4px solid #16a34a; }
.finance-summary-card.danger { border-left: 4px solid #dc2626; }
.finance-summary-card.warning { border-left: 4px solid #f59e0b; }
.finance-breakdown-card { flex-direction: row; align-items: center; }
.finance-breakdown-card div { flex: 1; display: grid; gap: 2px; }
@media (max-width: 760px) {
    .finance-health-panel { grid-template-columns: 1fr; }
    .finance-breakdown-card { align-items: flex-start; }
}

/* --- Tables --- */
.table-wrapper { overflow-x: auto; border-radius: 8px; border: 1px solid #eee; margin-bottom: 20px; }
.styled-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.95em; min-width: 600px; background: #fff; }
.styled-table thead tr { background-color: var(--primary-color, #3498db); color: #ffffff; text-align: left; }
.styled-table th, .styled-table td { padding: 15px; }
.styled-table tbody tr { border-bottom: 1px solid #dddddd; }
.styled-table tbody tr:nth-of-type(even) { background-color: #f9f9f9; }
.styled-table tbody tr:hover { background-color: #f1f1f1; }

.wallet-overview-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}
.wallet-details {
    display: flex;
    flex-direction: column;
}
.wallet-details .label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.wallet-details .balance {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}
.wallet-details .sub-text {
    font-size: 0.85rem;
    color: #27ae60;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wallet-buttons {
    display: flex;
    gap: 10px;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Toast Notifications */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
    border-left: 4px solid #333;
    min-width: 250px;
}
.toast.hide { animation: slideOut 0.3s ease-in forwards; }
.toast-success { border-left-color: #27ae60; }
.toast-error { border-left-color: #e74c3c; }
.toast-info { border-left-color: #3498db; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

