.xeco-page-content table, .xeco-page-content th, .xeco-page-content td
 {
    border: 0px!important;
}

.cup-dashboard .submit {
    
    text-align: center;
    
}

#referrals input {
    
    background:rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    color: #ffffff;
    margin-right: 5px;
    
}

.cup-dashboard, .cup-admin {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.cup-dashboard h2, .cup-admin h1, .cup-admin h2, .cup-deposit-method h3, .cup-wallet-info h4 {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cup-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cup-tab-button {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.cup-tab-button:hover, .cup-tab-button.active {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 235, 59, 0.2));
    color: #ffc107;
    border-bottom: 3px solid #ffc107;
}

.cup-tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cup-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

.cup-card, .cup-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cup-card:hover, .cup-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cup-balance-amount, .cup-stat-value {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffc107;
    margin: 0.5rem 0;
}

.cup-bonus {
    position: relative;
    overflow: hidden;
    border: 2px solid #ffc107;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 6px rgba(255, 193, 7, 0.5); }
    100% { box-shadow: 0 0 18px rgba(255, 193, 7, 0.9); }
}

.cup-bonus-wrapper {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.25), transparent);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.cup-bonus-amount {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffc107;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

.cup-bonus-progress {
    height: 8px;
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
    border-radius: 4px;
    margin-top: 0.75rem;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(1.08); }
    100% { transform: scaleX(1); }
}

.cup-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: monospace;
    color: #ffffff;
    max-width: 100%;
    word-break: break-all;
    display: inline-block;
}

.cup-form, .cup-deposit-method, .cup-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.cup-form label, .cup-wallet-info label {
    font-size: 1rem;
    color: #ffffff;
}

.cup-form input, .cup-form select, .cup-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.cup-form input:focus, .cup-form select:focus, .cup-form textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
    outline: none;
}

.cup-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
}

.cup-form input[type="number"]::-webkit-inner-spin-button,
.cup-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cup-form input[type="number"] {
    -moz-appearance: textfield;
}

.cup-form input[type="number"]:invalid {
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.cup-form textarea {
    min-height: 100px;
    resize: vertical;
}

.cup-button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cup-form-button {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    border: none;
    padding: 0.6rem 1.5rem;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.3);
}

.cup-form-button:hover {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.5);
}

.cup-manual-button {
    background: linear-gradient(135deg, #0288d1, #03a9f4);
    border: none;
    padding: 0.6rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(2, 136, 209, 0.3);
}

.cup-manual-button:hover {
    background: linear-gradient(135deg, #03a9f4, #0288d1);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 136, 209, 0.5);
}

.cup-deposit-button {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    border: none;
    padding: 0.8rem 2rem;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.cup-deposit-button:hover {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.7);
}

.cup-disconnect-button {
    background: linear-gradient(135deg, #e57373, #ef9a9a);
    border: none;
    padding: 0.6rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(229, 115, 115, 0.3);
}

.cup-disconnect-button:hover {
    background: linear-gradient(135deg, #ef9a9a, #e57373);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(229, 115, 115, 0.5);
}

.cup-back-button {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    border: none;
    padding: 0.5rem;
    color: #000000;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
}

.cup-back-button:hover {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.cup-form-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cup-form-header h3 {
    margin: 0;
}

.cup-success, .cup-error {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cup-success {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.cup-error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.cup-wallet-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.cup-wallet-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cup-wallet-container input {
    flex-grow: 1;
}

.cup-admin-wallet input {
    font-size: 1.1rem;
    font-weight: 600;
}

.cup-user-wallet {
    opacity: 0.8;
}

.cup-user-wallet input {
    font-size: 0.9rem;
}

.cup-wallet-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.cup-copy-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.cup-copy-button:hover {
    background: #ffc107;
    color: #000000;
    border-color: #ffc107;
}

.cup-copy-button.copied {
    background: #ffc107;
    color: #000000;
}

.cup-instructions p, .cup-deposit-method p {
    margin: 0.5rem 0;
    color: #ffffff;
}

.cup-withdraw button {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
    color: #000000;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
}

.cup-withdraw button:hover {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.5);
}

.cup-user-list input[type="number"] {
    width: 100px;
    margin-right: 10px;
}

.cup-admin .wp-list-table {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.cup-admin .wp-list-table th, .cup-admin .wp-list-table td {
    border-color: rgba(255, 255, 255, 0.15);
}

.cup-admin .wp-list-table th {
    color: #ffc107;
}

.cup-deposit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cup-tabs, .cup-stats-grid, .cup-button-group, .cup-deposit-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .cup-tab-button {
        width: 100%;
        justify-content: center;
    }
    .cup-tab-content {
        padding: 1.5rem;
    }
    .cup-card-grid, .cup-stats-grid {
        grid-template-columns: 1fr;
    }
    .cup-code {
        font-size: 0.85rem;
    }
    .cup-form, .cup-deposit-method, .cup-wallet-info {
        max-width: 100%;
    }
    .cup-wallet-container {
        flex-direction: column;
        align-items: stretch;
    }
    .cup-copy-button {
        width: 100%;
        text-align: center;
    }
    .cup-deposit-grid {
        grid-template-columns: 1fr;
    }
    .cup-deposit-grid .cup-form-button, .cup-deposit-grid .cup-manual-button {
        width: 100%;
        justify-content: center;
        padding: 0.6rem;
    }
    .cup-form-header {
        padding-left: 40px;
    }
    .cup-back-button {
        left: 10px;
    }
}

/* Chart.js styles */
.cup-stats-grid .cup-stat-card canvas {
    max-height: 300px;
    width: 100%;
}

.cup-stats-grid .cup-stat-card table {
    width: 100%;
    margin-top: 1rem;
}

.cup-stats-grid .cup-stat-card th,
.cup-stats-grid .cup-stat-card td {
    padding: 0.75rem;
    text-align: left;
}

.cup-stats-grid .cup-stat-card th {
    color: #ffc107;
    font-weight: bold;
}

.cup-checkbox-label {
    display: inline-flex; /* Changed to inline-flex to limit width */
    align-items: center;
    gap: 0.8rem; /* Consistent spacing between checkbox and text */
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    width: auto; /* Prevent stretching to full width */
    max-width: fit-content; /* Restrict to content size */
}

/* Checkbox Input Styling */
.cup-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px !important; /* Fixed size, override any inherited styles */
    height: 20px !important; /* Fixed size, override any inherited styles */
    min-width: 20px; /* Prevent shrinking */
    max-width: 20px; /* Prevent stretching */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent flexbox from resizing */
}

/* Override inherited input styles */
.cup-form .cup-checkbox {
    width: 20px !important; /* Ensure no inheritance from .cup-form input */
    max-width: 20px !important;
    min-width: 20px !important;
}

.cup-checkbox:hover {
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.cup-checkbox:checked {
    background: #ffc107;
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.cup-checkbox:checked::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #000000;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Checkbox Text Styling */
.cup-checkbox-text {
    color: #ffffff;
    transition: color 0.3s ease;
    flex-shrink: 0; /* Prevent text compression */
    white-space: nowrap; /* Prevent text wrapping */
}

.cup-checkbox-label:hover .cup-checkbox-text {
    color: #ffc107;
}

/* Focus State for Accessibility */
.cup-checkbox-label.focused .cup-checkbox {
    border-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

.cup-checkbox-label.focused .cup-checkbox-text {
    color: #ffc107;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cup-checkbox-label {
        font-size: 0.9rem;
        gap: 0.6rem;
    }
    .cup-checkbox {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px;
        max-width: 18px;
    }
    .cup-checkbox:checked::before {
        font-size: 11px;
    }
}

.cup-edit-balance-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cup-edit-balance-form input[type="number"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cup-edit-balance-form button {
    padding: 5px 10px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cup-edit-balance-form button:hover {
    background-color: #005177;
}