.vdaw-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: #F6F6F6;
    color: #6f6f6f;
    border-radius: 10px;
    font-family: Arial, sans-serif;
}

.vdaw-wrapper h2 {
    margin-bottom: 20px;
    text-align: center;
}

.vdaw-form-row {
    margin-bottom: 15px;
}

.vdaw-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#vdaw-competition {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    font-size: 14px;
}

.vdaw-actions button,
#vdaw-reveal-winner-button,
#vdaw-redraw-button {
    background: #FF0000;
    background: linear-gradient(120deg, rgba(255, 0, 0, 1) 0%, rgba(255, 115, 14, 1) 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.vdaw-actions button:hover,
#vdaw-reveal-winner-button:hover,
#vdaw-redraw-button:hover {
    background: #FF0000;
    background: linear-gradient(120deg, rgba(255, 0, 0, 1) 0%, rgba(255, 115, 14, 1) 100%);
}

#vdaw-result-message h3 {
    font-weight: bold;
}

#vdaw-number-display {
    background: #efefef;
    color: #00ffcc;
    padding: 15px 0 30px 0;
    border-radius: 8px;
    letter-spacing: 5px;
}

#vdaw-result-area {
    border-top: 1px solid #dcdcdc;
    padding-top: 20px;
    text-align: center;
}

#vdaw-close-results div {
    padding: 8px;
    border-bottom: 1px solid #333;
}

.vdaw-lottery-balls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vdaw-lottery-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #f0f0f0 45%, #d6d6d6 100%);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transform: scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vdaw-lottery-ball.is-spinning {
    animation: vdawBallShake 0.12s infinite;
}

.vdaw-lottery-ball.is-revealed {
    background: radial-gradient(circle at 30% 30%, #fff7bf, #FF730E 55%, #FF0000 100%);
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.8);
}

.vdaw-balls-loading {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #6f6f6f;
}

@keyframes vdawBallShake {
    0% {
        transform: rotate(-4deg) scale(1.04);
    }

    50% {
        transform: rotate(4deg) scale(1.1);
    }

    100% {
        transform: rotate(-4deg) scale(1.04);
    }
}

.vdaw-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    z-index: 999999;
    transition: background 1.8s ease, opacity 1.8s ease, visibility 0s linear 1.8s;
}

.vdaw-modal.is-open {
    background: rgba(0, 0, 0, 0.88);
    opacity: 1;
    visibility: visible;
    transition: background 1.8s ease, opacity 1.8s ease;
}

.vdaw-modal-content {
    position: relative;
    max-width: 700px;
    width: calc(100% - 40px);
    padding: 60px 30px;
    border-radius: 18px;
    background: radial-gradient(circle at top, #ecac19, #ff0000);
    color: #fff;
    text-align: center;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 1s ease 0.8s, opacity 1s ease 0.8s;
    box-shadow: 0 0 60px rgba(255, 204, 0, 0.35);
}

.vdaw-modal.is-open .vdaw-modal-content {
    transform: scale(1);
    opacity: 1;
}

.vdaw-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.vdaw-modal-intro {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 25px;
}

.vdaw-modal-winner-name {
    min-height: 60px;
    font-size: 52px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.vdaw-modal-winner-name.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vdaw-modal-ticket {
    margin-top: 25px;
    font-size: 24px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.vdaw-modal-ticket.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#vdaw-modal-ticket-number {
    color: #fff;
    font-weight: 900;
}

.vdaw-modal.is-closing {
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.vdaw-modal.is-closing .vdaw-modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.vdaw-confetti {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 16px;
    background: #ffcc00;
    opacity: 0.9;
    z-index: 1;
    animation-name: vdawConfettiFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.vdaw-confetti:nth-child(3n) {
    background: #00ffcc;
}

.vdaw-confetti:nth-child(4n) {
    background: #ff4fd8;
}

.vdaw-confetti:nth-child(5n) {
    background: #ffffff;
}

@keyframes vdawConfettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
    }
}

.vdaw-form-row {
    position: relative;
}

#vdaw-competition-search {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    font-size: 15px;
}

.vdaw-competition-results {
    display: none;
    position: absolute;
    z-index: 9999;
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    margin-top: 8px;
    background: #fff;
    color: #111;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.vdaw-competition-result {
    display: flex;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.vdaw-competition-result:hover {
    background: #f6f6f6;
}

.vdaw-competition-thumb {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.vdaw-competition-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vdaw-competition-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: bold;
    color: #777;
}

.vdaw-competition-result-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vdaw-competition-result-content strong {
    font-size: 15px;
}

.vdaw-competition-result-content span {
    font-size: 13px;
    color: #555;
}

.vdaw-competition-no-results {
    padding: 14px;
    color: #555;
}

.vdaw-wrapper {
	position: relative;
}

.vdaw-admin-notice {
	background: #fff3cd;
	border: 1px solid #ffeeba;
	color: #856404;
	padding: 12px 16px;
	margin-bottom: 15px;
	font-weight: 600;
	border-radius: 4px;
    width: 600px;
    margin: 0 auto;
}

.vdaw-lock-overlay {
	display: none;
}

.vdaw-wrapper.vdaw-locked .vdaw-lock-overlay {
	display: flex;
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.75);
	z-index: 20;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

.vdaw-wrapper.vdaw-locked .vdaw-lock-icon {
	font-size: 64px;
}

.vdaw-wrapper.vdaw-locked button,
.vdaw-wrapper.vdaw-locked input,
.vdaw-wrapper.vdaw-locked select {
	pointer-events: none;
}