/* WordPress-safe container styles */
.tl-transfer-system * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tl-transfer-system {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background-color: #030f0f !important;
    color: white !important;
    line-height: 1.6 !important;
    overflow-x: hidden !important;
}

/* Hero Section */
.tl-hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    background: linear-gradient(135deg, #030f0f 0%, #03624c 100%) !important;
    margin-bottom: 0 !important;
}

.tl-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.tl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: tlFadeInUp 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.tl-hero-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    background: linear-gradient(45deg, #00DF82, #03624c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tl-hero-subtitle {
    font-size: 1.3rem !important;
    color: #cccccc !important;
    margin-bottom: 2rem !important;
}

.tl-hero-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

.tl-stat-item {
    background: rgba(0, 223, 130, 0.1) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 10px !important;
    border: 1px solid #00DF82 !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.tl-stat-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 223, 130, 0.3) !important;
}

.tl-stat-value {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #00DF82 !important;
}

.tl-stat-label {
    font-size: 0.9rem !important;
    color: #cccccc !important;
}

/* Container */
.tl-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Section Styling */
.tl-section {
    padding: 4rem 0 !important;
    position: relative;
}

.tl-section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #00DF82 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    position: relative;
}

.tl-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00DF82, #03624c);
    border-radius: 2px;
}

.tl-section-subtitle {
    text-align: center !important;
    color: #cccccc !important;
    font-size: 1.1rem !important;
    margin-bottom: 3rem !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Wage Structure Cards */
.tl-wage-tiers {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin: 3rem 0 !important;
}

.tl-tier-card {
    background: linear-gradient(135deg, rgba(3, 98, 76, 0.2) 0%, rgba(0, 223, 130, 0.1) 100%) !important;
    border: 1px solid #03624c !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.tl-tier-card:hover {
    transform: translateY(-10px) !important;
    border-color: #00DF82 !important;
    box-shadow: 0 20px 40px rgba(0, 223, 130, 0.2) !important;
}

.tl-tier-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
}

.tl-tier-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00DF82, #03624c) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
    font-size: 1.5rem !important;
}

.tl-tier-info h3 {
    color: #00DF82 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.2rem !important;
}

.tl-tier-range {
    color: #cccccc !important;
    font-size: 0.9rem !important;
}

.tl-wage-list {
    list-style: none !important;
}

.tl-wage-item {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.tl-wage-item:hover {
    background: rgba(0, 223, 130, 0.05) !important;
    transform: translateX(5px) !important;
}

.tl-rating {
    color: #00DF82 !important;
    font-weight: 600 !important;
}

.tl-wage {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Budget Calculator */
.tl-calculator-container {
    background: linear-gradient(135deg, rgba(3, 98, 76, 0.3) 0%, rgba(0, 223, 130, 0.1) 100%) !important;
    border: 2px solid #03624c !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    margin: 3rem 0 !important;
    position: relative;
    overflow: hidden;
}

.tl-calculator-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
}

.tl-calculator-header h3 {
    color: #00DF82 !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

.tl-budget-display {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 2rem !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.tl-budget-item {
    background: rgba(0, 223, 130, 0.1) !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    border: 1px solid #00DF82 !important;
    text-align: center !important;
    flex: 1;
    min-width: 200px;
}

.tl-budget-label {
    color: #cccccc !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
}

.tl-budget-value {
    color: #00DF82 !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
}

.tl-progress-bar {
    width: 100% !important;
    height: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    margin: 1rem 0 !important;
    overflow: hidden;
}

.tl-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #00DF82, #03624c) !important;
    border-radius: 10px !important;
    transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    width: 0%;
}

/* Team Budget Table */
.tl-team-table-container {
    background: rgba(3, 98, 76, 0.2) !important;
    border: 1px solid #03624c !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    overflow-x: auto !important;
}

.tl-teams-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.tl-teams-table thead tr {
    background: rgba(0, 223, 130, 0.1) !important;
    border-bottom: 2px solid #00DF82 !important;
}

.tl-teams-table th {
    padding: 1rem !important;
    color: #00DF82 !important;
    font-weight: 600 !important;
    border: none !important;
}

.tl-teams-table td {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tl-team-name {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.tl-team-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
}

/* Transaction Logs */
.tl-transaction-logs {
    background: rgba(3, 15, 15, 0.8) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    margin: 3rem 0 !important;
    border: 1px solid #03624c !important;
}

.tl-log-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 2rem !important;
}

.tl-log-header i {
    font-size: 2rem !important;
    color: #00DF82 !important;
    margin-right: 1rem !important;
}

.tl-log-header h3 {
    color: #00DF82 !important;
    font-size: 1.8rem !important;
}

.tl-transaction-item {
    display: flex !important;
    align-items: center !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 10px !important;
    border-left: 4px solid;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
    animation: tlSlideInLeft 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.tl-transaction-item:hover {
    transform: translateX(10px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
}

.tl-transaction-item.transfer {
    background: rgba(0, 223, 130, 0.1) !important;
    border-left-color: #00DF82 !important;
}

.tl-transaction-item.bonus {
    background: rgba(255, 193, 7, 0.1) !important;
    border-left-color: #ffc107 !important;
}

.tl-transaction-item.loan {
    background: rgba(32, 201, 151, 0.1) !important;
    border-left-color: #20c997 !important;
}

.tl-transaction-item.wage {
    background: rgba(220, 53, 69, 0.1) !important;
    border-left-color: #dc3545 !important;
}

.tl-transaction-item.other {
    background: rgba(108, 117, 125, 0.1) !important;
    border-left-color: #6c757d !important;
}

.tl-transaction-item.fine {
    background: rgba(220, 53, 69, 0.1) !important;
    border-left-color: #dc3545 !important;
}

.tl-transaction-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
    font-size: 1.2rem !important;
}

.tl-transaction-icon.transfer {
    background: #00DF82 !important;
    color: #030f0f !important;
}

.tl-transaction-icon.bonus {
    background: #ffc107 !important;
    color: #030f0f !important;
}

.tl-transaction-icon.loan {
    background: #20c997 !important;
    color: #030f0f !important;
}

.tl-transaction-icon.wage {
    background: #dc3545 !important;
    color: white !important;
}

.tl-transaction-icon.other {
    background: #6c757d !important;
    color: white !important;
}

.tl-transaction-icon.fine {
    background: #dc3545 !important;
    color: white !important;
}

.tl-transaction-content {
    flex: 1;
}

.tl-transaction-text {
    color: #ffffff !important;
    margin-bottom: 0.2rem !important;
}

.tl-transaction-time {
    color: #cccccc !important;
    font-size: 0.85rem !important;
}

.tl-transaction-amount {
    color: #00DF82 !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

/* Rules Grid */
.tl-rules-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin: 3rem 0 !important;
}

.tl-rule-card {
    background: rgba(3, 98, 76, 0.2) !important;
    border: 1px solid #03624c !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.tl-rule-card:hover {
    border-color: #00DF82 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 223, 130, 0.2) !important;
}

.tl-rule-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
}

.tl-rule-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(45deg, #00DF82, #03624c) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
    font-size: 1.2rem !important;
}

.tl-rule-title {
    color: #00DF82 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.tl-rule-content {
    color: #cccccc !important;
    line-height: 1.6 !important;
}

/* FAQ Section - FIXED FOR FULL RECTANGLE CLICKING */
.tl-faq-container {
    margin: 3rem 0 !important;
}

.tl-faq-item {
    background: rgba(3, 98, 76, 0.2) !important;
    border: 1px solid #03624c !important;
    border-radius: 10px !important;
    margin-bottom: 1rem !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.tl-faq-question {
    padding: 1.5rem !important;
    background: rgba(0, 223, 130, 0.1) !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    user-select: none !important;
}

.tl-faq-question:hover {
    background: rgba(0, 223, 130, 0.2) !important;
}

.tl-faq-question h4 {
    color: #00DF82 !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    pointer-events: none !important;
    flex: 1 !important;
}

.tl-faq-toggle {
    color: #00DF82 !important;
    font-size: 1.2rem !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}

.tl-faq-answer {
    padding: 0 1.5rem !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.tl-faq-answer.active {
    padding: 1.5rem !important;
    max-height: 500px !important;
}

.tl-faq-answer p {
    color: #cccccc !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* Buttons */
.tl-btn {
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.tl-btn-primary {
    background: linear-gradient(45deg, #00DF82, #03624c) !important;
    color: white !important;
}

.tl-btn-secondary {
    background: rgba(0, 223, 130, 0.2) !important;
    color: #00DF82 !important;
    border: 1px solid #00DF82 !important;
}

.tl-btn-danger {
    background: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
}

.tl-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Select styling */
.tl-select {
    background: rgba(3, 98, 76, 0.3) !important;
    color: white !important;
    border: 1px solid #03624c !important;
    padding: 0.5rem !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
}

.tl-select option {
    background: #030f0f !important;
    color: white !important;
}

/* Controls row */
.tl-controls {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
}

.tl-control-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.tl-control-label {
    color: #00DF82 !important;
    font-weight: 600 !important;
}

/* Roster display */
.tl-roster-display {
    margin-top: 2rem !important;
    display: none;
}

.tl-roster-title {
    color: #00DF82 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.tl-roster-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
}

.tl-player-card {
    background: rgba(0, 223, 130, 0.1) !important;
    border: 1px solid #03624c !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.tl-player-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 223, 130, 0.3) !important;
}

.tl-player-rating {
    color: #00DF82 !important;
    font-weight: 600 !important;
}

.tl-player-wage {
    color: #cccccc !important;
    font-size: 0.9rem !important;
}

.tl-remove-btn {
    background: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Loading states */
.tl-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 223, 130, 0.3);
    border-radius: 50%;
    border-top-color: #00DF82;
    animation: tlSpin 1s ease-in-out infinite;
}

/* Animations */
@keyframes tlFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tlSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tlSpin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tl-hero-title {
        font-size: 2.5rem !important;
    }

    .tl-hero-subtitle {
        font-size: 1.1rem !important;
    }

    .tl-hero-stats {
        gap: 1rem !important;
    }

    .tl-section-title {
        font-size: 2rem !important;
    }

    .tl-wage-tiers {
        grid-template-columns: 1fr !important;
    }

    .tl-budget-display {
        flex-direction: column !important;
    }

    .tl-controls {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .tl-control-group {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .tl-hero-title {
        font-size: 2rem !important;
    }

    .tl-container {
        padding: 0 15px !important;
    }

    .tl-section {
        padding: 2rem 0 !important;
    }
}