/* Button Styles */
.play-now-btn {
    background-color: #5bb75b;
    background-image: linear-gradient(to bottom, #62c462, #51a351);
    border: 1px solid #499349;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-bottom-color: #387038;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    padding: 15px 30px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
    transition: none;
    display: inline-block; /* to allow padding */
}

.play-now-btn:hover {
    background-color: #51a351;
    background-position: 0 -15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
    transform: none;
    border-style: solid;
}

.play-now-btn:active {
    background-color: #499249;
    background-image: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    transform: translateY(1px);
    border-bottom-width: 1px;
}

.btn-primary {
    background-color: #006dcc;
    background-image: linear-gradient(to bottom, #0088cc, #0055cc);
    border: 1px solid #0055cc;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-bottom-color: #002a80;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    transition: none;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
}

.btn-primary:hover {
    background-color: #0055cc;
    background-position: 0 -15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
    transform: none;
    border-style: solid;
}

.btn-primary:active {
    background-color: #0044cc;
    background-image: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    transform: translateY(1px);
    border-bottom-width: 1px;
}

.btn-secondary {
    background-color: #f5f5f5;
    background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
    border: 1px solid #cccccc;
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-bottom-color: #b3b3b3;
    border-radius: 4px;
    color: #333;
    padding: 8px 16px;
    cursor: pointer;
    transition: none;
    font-size: 13px;
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
}

.btn-secondary:hover {
    background-color: #e6e6e6;
    background-image: none;
    border-color: #adadad;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    transform: none;
    border-style: solid;
}

.btn-secondary:active {
    background-color: #d9d9d9;
    background-image: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.05);
    transform: translateY(1px);
    border-bottom-width: 1px;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid #4477A1;
    color: #4477A1;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    transition: none;
    box-shadow: none;
}

.secondary-btn:hover {
    background-color: #4477A1;
    color: white;
    box-shadow: none;
    transform: none;
}

.secondary-btn:active {
    background-color: #3b6b92;
    background-image: none;
    box-shadow: none;
    transform: none;
}

.buy-btn {
    background-color: #4477A1;
    background-image: linear-gradient(to bottom, #529ecc, #3b6b92);
    border: 1px solid #2a587d;
    border-radius: 0;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    transition: none;
    width: 100%;
    box-shadow: none;
}

.buy-btn:hover:not(:disabled) {
    background-color: #529ecc;
    background-image: none;
    box-shadow: none;
    transform: none;
}

.buy-kords-btn {
    width: 100%;
}

.buy-btn:disabled {
    background: #b0c4de;
    border-color: #a4b8d0;
    cursor: not-allowed;
    background-image: none;
    box-shadow: none; /* No shadow when disabled */
    transform: none;
}

/* Common style for moderation sections/cards */
.moderation-section-card {
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Broadcast Management Styles */
.broadcast-manager {
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.broadcast-manager h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.broadcast-form textarea {
    min-height: 60px;
    resize: vertical;
}

.broadcast-form select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #fff; /* Ensure white background for selects */
    box-shadow: none;
}

.broadcast-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.active-broadcast {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: none;
}

.active-broadcast h4 {
    margin: 0 0 10px 0;
    color: #2e7d32;
    text-shadow: none;
}

.broadcast-actions {
    display: flex;
    gap: 8px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.3);
    text-shadow: none;
}

.modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
}

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

/* Form Styles */
.modal-content input,
.modal-content textarea,
.modal-content select,
.price-input, 
.code-input,
.create-assign-code-input,
.assign-code-input,
.assign-code-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    resize: vertical;
    background-color: #ffffff; /* pure white */
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.modal-content textarea {
    min-height: 100px;
}

.price-input, .code-input, .create-assign-code-input {
    padding: 8px;
    width: auto;
    margin-bottom: 0;
}

.price-input { width: 100px; }
.code-input { width: 150px; }
.create-assign-code-input { min-width: 180px; }

/* Rules Modal */
.rules-modal {
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.rules-modal-content {
    background: #ffffff;
    border-radius: 6px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 7px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.3);
    animation: none;
}

.rules-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.rules-content {
    padding: 0;
    overflow-y: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-footer {
    background: #f5f8fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e1e8ed;
    border-radius: 0;
    box-shadow: none;
}

.rules-timer {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    text-shadow: none;
}

#countdown {
    font-weight: bold;
    color: #4477A1; /* Use primary blue */
}

#agree-rules-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    min-width: 200px;
}

#agree-rules-btn:disabled {
    background: #d0dbe8; /* Lighter disabled color */
    border-color: #c0cddc;
    cursor: not-allowed;
    background-image: none;
    box-shadow: none;
    transform: none;
}

/* Maintenance Overlay */
#maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 100, 100, 0.95); /* Darker, more neutral gray */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: white;
}

#maintenance-overlay img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    filter: none;
}