body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
}

header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    margin-right: 15px;
}

.logo-text {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

.subheader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

.subheader-link {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.subheader-link:hover {
    color: #cccccc;
}

.subheader-link.active {
    color: #cccccc;
    font-weight: 700;
}

.subheader-separator {
    color: #ffffff;
    font-size: 18px;
}

.points-container {
    background-color: #0f0f0f;
    width: 80%;
    max-width: 1200px;
    min-height: 680px;
    margin: 20px auto;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.giveaway-container {
    background-color: #0f0f0f;
    width: 80%;
    max-width: 1200px;
    min-height: 700px;
    margin: 20px auto;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.points-container::before, .giveaway-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #df9f00 20%, #df9f00 80%, transparent);
}

.inner-containers {
    display: flex;
    justify-content: center;
    gap: 50px;
    width: 100%;
    margin-bottom: 20px;
}

.inner-container {
background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 300px;
    height: 350px;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.point-drop h2, .highscore h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px 0;
}

.input-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    width: 70px;
}

.input-group span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.input-field {
    flex: 1;
    padding: 8px;
    background-color: #181818;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.input-field::-webkit-outer-spin-button,
.input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field:focus {
    outline: none;
}

.drop-button, .roll-button, .go-button, .save-button, .login-button {
    background-color: #df9f00;
    color: #000000;
    border: 2px solid #df9f00;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.drop-button {
    width: 100%;
}

.roll-button {
    width: 100%;
    min-width: 400px;
}

.go-button, .save-button {
    width: 100%;
}

.login-button {
    width: 100%;
}

.drop-button:disabled, .roll-button:disabled, .clear-giveaway-button:disabled {
    background-color: #333333;
    border-color: #555555;
    color: #777777;
    cursor: not-allowed;
}

.drop-button:hover:not(:disabled), .roll-button:hover:not(:disabled), .go-button:hover, .save-button:hover, .login-button:hover:not(:disabled) {
    background-color: #ffba0d;
        border: 2px solid #ffba0d;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.giveaway-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-circle {
    width: 80px;
    height: 80px;
    border: 2px solid #df9f00;
    border-radius: 50%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.giveaway-timer-circle {
    width: 120px;
    height: 120px;
    border: 2px solid #df9f00;
    border-radius: 50%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-text {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.giveaway-timer-text {
    color: #ffffff;
    font-size: 42px;
    font-weight: bold;
    text-shadow: 0 0 0px rgba(255,255,255,0.5);
}

.claimed-text {
    color: #ffffff;
    font-size: 16px;
    margin-top: 10px;
}

.participants-text {
    color: #ffffff;
    font-size: 16px;
    margin-top: 20px;
}

.highscore-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex-grow: 1;
}

.highscore-list li {
    color: #ffffff;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.highscore-list li:hover {
    background-color: #333333;
    border-radius: 4px;
    padding: 0 5px;
}

.highscore-list .points {
    font-weight: bold;
}

.edit-button {
    background: none;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0.6;
}

.edit-button:hover {
    opacity: 0.4;
}

.clear-giveaway-button {
    background: none;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0.6;
}

.clear-giveaway-button:hover {
    opacity: 0.4;
}

.recent-checkouts-header {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
}

.recent-winners-header, .winner-chat-header {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    width: 75%;
    text-align: center;
    margin: 20px 0 10px 0;
}

.active-winner {
    color: #df9f00;
}

.id-link {
    color: #df9f00;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
}

.id-link:hover {
    text-decoration: underline;
}

.recent-winners {
    width: 75%;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
}

.winner-card {
    background-color: #333333;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    flex-grow: 1;
    position: relative;
    transition: transform 0.2s ease;
    margin-bottom: -5px;
}

.winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #df9f00 20%, #df9f00 80%, transparent 100%);
}

.winner-card:hover {
    transform: scale(1.05);
}

.checkout-card {
background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 160px;
    height: 180px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #df9f00 20%, #df9f00 80%, transparent);
}

.points-cost {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333333;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}

.checkout-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    margin-top: 20px;
}

.item-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.username {
    color: #cccccc;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.spin-container {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 75%;
    height: 125px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    will-change: contents;
}

.items-wrapper {
    display: flex;
    position: relative;
    height: 100%;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.spin-container::-webkit-scrollbar {
    display: none;
}

.spin-container {
    scrollbar-width: none;
}

.spin-indicator {
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 2px;
    height: 80%;
    background: linear-gradient(to bottom, transparent 0%, #df9f00 20%, #df9f00 80%, transparent);
    z-index: 100;
}

/* SPOTLIGHT / VIGNETTE EFFECT — ONLY CENTER IS FULLY VISIBLE */
.spin-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;                    /* doesn't block clicks */
    z-index: 50;                              /* above items, below indicator */
    background: linear-gradient(
        to right,
        rgba(16, 16, 16, 0.95) 0%,     /* almost black on far left */
        transparent 25%,
        transparent 75%,
        rgba(16, 16, 16, 0.95) 100%    /* almost black on far right */
    );
    /* Optional: make the dark part even stronger */
    /* background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.85) 80%); */
}

.item {
    margin: 0 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 80px;
    height: 125px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.item-wrapper {
    position: relative;
    width: 80px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.participant-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 1;
    margin-bottom: 3px;
}

.participant-name {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    max-width: 80px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.winner-breathing {
    animation: breathing 2s ease-in-out infinite;
}

@keyframes breathing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.giveaway-input-container {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 75%;
    height: 250px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-top: 20px;
    align-items: center;
    position: relative;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
    padding-left: 100px;
    min-width: 400px;
}

.timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 0 20px;
}

.winner-chat-container {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 35%;
    height: 135px;
    border-radius: 8px;
    margin-top: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    white-space: normal;
    word-wrap: break-word;
}

.winner-chat-container::-webkit-scrollbar {
    width: 8px;
}

.winner-chat-container::-webkit-scrollbar-track {
    background: #151515;
    border-radius: 4px;
}

.winner-chat-container::-webkit-scrollbar-thumb {
    background: #df9f00;
    border-radius: 4px;
}

.winner-chat-container::-webkit-scrollbar-thumb:hover {
    background: #ffba0d;
}

.winner-chat-container {
    scrollbar-width: thin;
    scrollbar-color: #df9f00 #151515;
}

.winner-message {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.popout {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #101010;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.popout-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.id-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080;
    z-index: 1000;
    display: none;
}

.id-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #101010;
    padding: 20px;
    border-radius: 8px;
    width: 33%;
    max-width: 400px;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
}

.id-header {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px 0;
}

.id-link-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.id-name {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    width: 40%;
}

.id-input {
    width: 60%;
    padding: 8px;
    background-color: #181818;
    border: 1px solid #df9f00;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
}

.id-input:disabled {
    background-color: #333333;
    color: #666666;
    cursor: not-allowed;
}

.id-input.no-id {
    border-color: #d13b3b;
}

.id-input.has-id {
    border-color: #00cc00;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-popout {
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.login-popout h2 {
    color: #b2b4bd;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.login-error {
    color: #df9f00;
    font-size: 14px;
    margin-top: 10px;
}

.widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.widget-notification {
    background-color: #0a0a0a;
    padding: 20px 40px;
    border-radius: 8px;
    border: 2px solid #df9f00;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out, widget-breathing 2s ease-in-out infinite;
}

.widget-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes widget-breathing {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.recent-checkouts {
    width: 80%;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap; /* Optional: allows wrapping if there are too many cards */
}

#verify-result-container {
    position: absolute;
    left: 78%;                    /* Your perfect value */
    transform: translateX(-50%);  /* Keeps it perfectly centered on its own text */
    bottom: 10px;                 /* Your perfect value */
    font-size: 14px;
    color: #00ff00;
    text-decoration: underline;
    z-index: 10;
    display: none;
    white-space: nowrap;
    pointer-events: auto;
}

#verify-result-container a {
    color: #00ff00;
    text-decoration: underline;
    font-weight: normal;
}

.index-badge {
    position: absolute;
    top: -16px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-weight: 900;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 10;
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
}

.item-wrapper {
    position: relative;
}

.winner-breathing .index-badge {
    background: #00ff9d !important;
    color: black !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}