* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --secondary: #7b2cbf;
    --success: #06d6a0;
    --warning: #ffd60a;
    --danger: #ef476f;
    --bg-dark: #0a0e27;
    --bg-card: #141b3d;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border: #1e2742;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    font-size: 18px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    transition: all 0.3s ease;
}

.desctiption {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    padding: 50px;
    background: var(--bg-card);
    border-radius: 0;
    border-left: 4px solid var(--primary);
    
}

.notes {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 0;
    border-left: 2px solid var(--primary);
}

.header-content {
    margin: 0; color:
    var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.notes-content {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.manage-participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
}

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

#manageParticipantsContent {
    display: none;
}

#manageParticipantsContent.show {
    display: flex;
}

#removeParticipantContent {
    display: none;
}

#removeParticipantContent.show {
    display: flex;
}

#addParticipantContent {
    display: none;
}

#addParticipantContent.show {
    display: flex;
}

.header-icon {
    width: clamp(24px, 4vw, 40px);
    height: clamp(24px, 4vw, 40px);
    filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(1000%) hue-rotate(160deg);
    transition: all 0.3s ease;
}

.game-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(1000%) hue-rotate(160deg);
    transition: all 0.3s ease;
    margin-right: 5px;
}

.header-icon svg, .game-icon svg {
    fill: var(--primary);
}

@media (max-width: 768px) {
    .header-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        gap: 8px;
    }
    
    .header-icon {
        width: clamp(20px, 5vw, 32px);
        height: clamp(20px, 5vw, 32px);
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: clamp(1rem, 6vw, 1.5rem);
        gap: 6px;
    }
    
    .header-icon {
        width: clamp(18px, 6vw, 28px);
        height: clamp(18px, 6vw, 28px);
    }
}

.stats-container {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 44, 191, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glossy-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 44, 191, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glossy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.glossy-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
    animation: glassRotate 20s linear infinite;
    pointer-events: none;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.stats-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
    animation: glassRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes glassRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.month-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.month-select,
.year-select {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    height: 44px;
    box-sizing: border-box;
    min-width: 80px;
}

.month-select:focus,
.year-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.month-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.month-nav-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.stats-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.stats-buttons-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.stats-buttons-right {
    flex-shrink: 0;
    margin-left: auto;
}

@media (max-width: 768px) {
    .stats-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-buttons-left {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .stats-buttons-left .today-btn {
        flex: 1;
    }
    
    .stats-buttons-right {
        width: 100%;
        margin-left: 0;
    }
    
    .stats-buttons-right .today-btn {
        width: 100%;
    }
}

.today-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

h1 {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.total-info {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 39, 0.4);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    min-width: 180px;
}

.info-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.info-item .label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item .value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.game-timeline {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.game-timeline p {
    margin: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-timeline strong {
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-note {
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.8;
}

.current-month-indicator {
    font-size: 15px;
    color: var(--text-primary);
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(0, 212, 255, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.current-month-indicator strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 17px;
}

.payment-section, .participants-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s;
    box-sizing: border-box;
    height: 50px;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

input[type="number"]::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(160, 174, 192, 0.5);
    opacity: 1;
}

input[type="number"]::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
input[type="email"]::-webkit-input-placeholder {
    color: rgba(160, 174, 192, 0.5);
    opacity: 1;
}

input[type="number"]::-moz-placeholder,
input[type="text"]::-moz-placeholder,
input[type="password"]::-moz-placeholder,
input[type="email"]::-moz-placeholder {
    color: rgba(160, 174, 192, 0.5);
    opacity: 1;
}

input[type="number"]:-ms-input-placeholder,
input[type="text"]:-ms-input-placeholder,
input[type="password"]:-ms-input-placeholder,
input[type="email"]:-ms-input-placeholder {
    color: rgba(160, 174, 192, 0.5);
    opacity: 1;
}

.manage-participant-select {
    width: 100%;
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-size: 18px;
    line-height: 1.5;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.manage-participant-select select {
    height: 60px;
}
.searchable-select {
    position: relative;
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-list.active {
    display: block;
}

.dropdown-item {
    padding: 15px 18px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-dark);
    color: var(--primary);
}

.dropdown-item.no-results {
    color: var(--text-secondary);
    cursor: default;
}

.dropdown-item.no-results:hover {
    background: transparent;
    color: var(--text-secondary);
}

input[type="checkbox"] {
    width: 28px;
    height: 28px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

#participantsList {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.participant-card {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.participant-card.paid {
    border-color: var(--success);
    background: rgba(6, 214, 160, 0.1);
}

.participant-card.incomplete {
    border-color: var(--warning);
    background: rgba(255, 214, 10, 0.1);
}

.participant-card.awarded {
    border-color: #7b2cbf;
    background: rgba(123, 44, 191, 0.15);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.3);
}

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

.participant-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.participant-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.history-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.print-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #ffd700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
    margin-left: 8px;
}

.print-btn:hover {
    background: #ffd700;
    color: #000000;
    transform: scale(1.1);
}

.print-btn:hover img {
    filter: brightness(0);
}

.print-btn img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(1.1);
}

.participant-position {
    font-size: 16px;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 8px;
}

.participant-serial {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.participant-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

.participant-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.paid {
    background: var(--success);
    color: var(--bg-dark);
}

.status-badge.incomplete {
    background: var(--warning);
    color: var(--bg-dark);
}

.status-badge.pending {
    background: var(--border);
    color: var(--text-secondary);
}

.status-badge.awarded {
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
    color: white;
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.4);
}

.award-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(123, 44, 191, 0.3);
}

.award-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.5);
    background: linear-gradient(135deg, #9d4edd, #c77dff);
}

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

.interest-status {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 14px;
}

.interest-status.paid {
    color: var(--success);
}

.interest-status.pending {
    color: var(--warning);
}

.pair-details {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pair-member {
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pair-name {
    font-weight: 600;
    color: var(--text-primary);
}

.pair-amount {
    color: var(--text-secondary);
    text-align: right;
}

.pair-member.paid-member {
    background: rgba(6, 214, 160, 0.2);
    color: var(--success);
}

.amount-payment-row {
    display: flex;
    gap: 10px;
}

.amount-payment-row input {
    flex: 1;
}

.amount-payment-row select {
    width: 140px;
    flex-shrink: 0;
}

.due-amount {
    color: var(--warning) !important;
}

.interest-due {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 214, 10, 0.15);
    border-left: 3px solid var(--warning);
    border-radius: 4px;
    font-size: 14px;
    color: var(--warning);
    font-weight: 600;
}

.calc-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.calc-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.calc-btn svg {
    width: 18px;
    height: 18px;
}

.calc-breakdown {
    padding: 10px 0;
}

.calc-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.calc-step {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 8px;
}

.calc-step.highlight-step {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--primary);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.calc-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.calc-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.calc-amount-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.calc-explanation {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.calc-subtext {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 3px 0 0 0;
    font-style: italic;
}

.calc-line {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.calc-result {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

.calc-divider {
    height: 2px;
    background: var(--border);
    margin: 20px 0;
}

.calc-final {
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.calc-final .calc-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.calc-note {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 214, 10, 0.1);
    border-left: 3px solid var(--warning);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.history-table-container {
    max-height: 500px;
    overflow-y: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.history-table thead {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.history-table th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
}

.history-table tbody tr:hover {
    background: var(--bg-dark);
}

.history-table small {
    color: var(--text-secondary);
    font-size: 12px;
}

.history-table button {
    min-width: auto;
    white-space: nowrap;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.payment {
    background: rgba(6, 214, 160, 0.2);
    color: var(--success);
}

.type-badge.interest {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
}

.type-badge.na {
    background: rgba(160, 160, 160, 0.2);
    color: var(--text-secondary);
}

.history-summary {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: var(--text-primary);
}

.summary-item strong {
    color: var(--text-secondary);
}

.no-history {
    text-align: center;
    padding: 40px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s;
    z-index: 100;
}

.to-top-btn.visible {
    display: flex;
}

.to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

.to-top-btn:active {
    transform: translateY(-1px);
}

.to-top-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .to-top-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

.kitty-bot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 140px);
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.kitty-bot.active {
    display: flex;
}

.bot-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    flex-shrink: 0;
    padding: 8px;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.bot-info {
    flex: 1;
}

.bot-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-dark);
}

.bot-status {
    font-size: 12px;
    color: rgba(10, 14, 39, 0.7);
}

.bot-close {
    background: transparent;
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.bot-close:hover {
    opacity: 1;
}

.bot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-card);
}

.bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-card);
}

.bot-messages::after {
    content: "";
    display: table;
    clear: both;
}

.bot-message {
    display: flex;
    gap: 10px;
    animation: messageSlide 0.3s ease-out;
    align-items: flex-end;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    padding: 3px;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bot-message.bot .message-avatar img {
    filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(1000%) hue-rotate(160deg);
}

.bot-message.user .message-avatar {
    background: transparent;
    color: var(--bg-dark);
}

.bot-message.user .message-avatar img {
    filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(1000%) hue-rotate(160deg);
}

.message-content {
    max-width: 75%;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    border: none;
}

.bot-message.bot .message-content {
    background: var(--bg-dark);
    color: var(--text-primary);
    float: left;
    margin-left: 4px;
}

.bot-message.bot .message-content::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border-bottom-right-radius: 15px;
}

.bot-message.bot .message-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -10px;
    width: 10px;
    height: 20px;
    background: var(--bg-card);
    border-bottom-right-radius: 10px;
}

.bot-message.user .message-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    float: right;
    margin-right: 4px;
}

.bot-message.user .message-content::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--primary-dark);
    border-bottom-left-radius: 15px;
}

.bot-message.user .message-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 10px;
    height: 20px;
    background: var(--bg-card);
    border-bottom-left-radius: 10px;
}

.bot-input-area {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: var(--bg-dark);
}

#botInput {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
}

#botInput:focus {
    outline: none;
    border-color: var(--primary);
}

.bot-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.bot-send-btn:hover {
    transform: scale(1.05);
}

.kitty-bot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.79);
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s;
    z-index: 999;
    padding: 14px;
}

.kitty-bot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(1000%) hue-rotate(160deg);
}

.kitty-bot-toggle svg {
    margin: 0;
}

.kitty-bot-toggle:hover {
    transform: scale(1.1);
}

.kitty-bot-toggle.hidden {
    display: none;
}

@media (max-width: 768px) {
    .kitty-bot {
        bottom: 20px;
        right: 20px;
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
    }

    .kitty-bot-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
}

#confirmDetails {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

#paymentHistoryModal .modal-actions {
    margin-top: 30px;
}

.modal-actions button {
    flex: 1;
}

.menu-toggle-btn {
    background: transparent; border: none; cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center;
}

.menu-toggle-btn:hover {
    background-color: var(--primary);
    border-radius: 8px;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 15px;
    }

    h1 {
        font-size: 36px;
    }
    
    .user-menu a:hover {
        color: var(--primary-dark);
    }

    .payment-section, .participants-section {
        padding: 20px;
    }

    h2 {
        font-size: 24px;
    }

    input[type="number"],
    select {
        padding: 16px;
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 16px;
        font-size: 18px;
    }

    .participant-name {
        font-size: 20px;
    }

    .detail-value {
        font-size: 18px;
    }
    
    .stats-container {
        padding: 20px;
    }
    
    .info-item {
        min-width: 150px;
        padding: 15px 20px;
    }
    
    .info-item .value {
        font-size: 28px;
    }
    
    .game-timeline p {
        font-size: 14px;
    }
    
    .timeline-note {
        font-size: 12px;
    }
    
    .current-month-indicator {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .current-month-indicator strong {
        font-size: 15px;
    }
}

.toggle-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle-container svg {
    transition: all 0.3s ease;
    width: 96px;
    height: 48px;
}

.toggle-container svg path {
    fill: currentColor;
}

.toggle-container:not(.active) {
    color: var(--text-secondary);
}

.toggle-container.active {
    color: var(--primary);
}

.menu-container {
    position: relative;
}

.menu-toggle-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.user-menu-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.user-menu-username {
    color: var(--text-secondary);
    font-size: 14px;
}

.user-menu-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-menu-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    font-size: 16px;
}

.user-menu-logout {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    margin-top: 5px;
}

.payment-section-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.organizer-warning {
    background: rgba(239, 71, 111, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.section-divider {
    border-top: 2px solid var(--border);
    padding-top: 20px;
}

.section-heading {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.swap-icon-container {
    text-align: center;
    margin: 10px 0;
}

.swap-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.warning-text {
    color: var(--warning);
}

.modal-paragraph {
    color: var(--text-primary);
    margin: 20px 0;
    line-height: 1.6;
}

.hidden {
    display: none;
}

.manage-section {
    margin-top: 30px;
}

.manage-content {
    flex-direction: column;
    gap: 20px;
}

.pair-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.pair-checkbox-hidden {
    display: none;
}