/* CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-medium: #333333;
    --gray-light: #f0f0f0;
    --transition-speed: 0.2s;
    --border-width: 2px;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loading-static {
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.typewriter-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.loading-dynamic {
    position: relative;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    min-height: 1.5em;
    padding-bottom: 12px;
    width: 100%;
    text-align: center;
}

.loading-dynamic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--white);
}

.typewriter-text {
    display: inline-block;
    min-width: 1px;
    text-align: center;
    white-space: pre;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--white);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Body and Main Container Styles */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.4;
    overflow-x: hidden;
    font-weight: 500;
    letter-spacing: -0.02em;
}


/* Typography - Brutalist style */
h1, h2, h3 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Main container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

#content {
    display: contents;
}

/* Header with geometric lines */
.header {
    border-bottom: var(--border-width) solid var(--black);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: var(--border-width);
    background: var(--black);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}


/* Live DateTime */
.live-datetime {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
    line-height: 1.2;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.nav-links .nav-link:nth-last-child(2) {
    margin-left: auto;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    text-decoration: none;
    position: relative;
    transition: opacity var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width var(--transition-speed);
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    opacity: 1;
}

.nav-link.active::after {
    width: 100%;
}

/* Video Section Styles */
.video-section {
    position: relative;
    border: var(--border-width) solid var(--black);
    overflow: hidden;
    background: var(--black);
}

/* Sponsor Display */
.sponsor-display {
    background: var(--white);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-bottom: var(--border-width) solid var(--black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
}

.sponsor-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #666;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.sponsor-name {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    vertical-align: middle;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    text-align: center;
}

/* Video Player Container with 16:9 aspect ratio */
.video-container {
    position: relative;
    padding-bottom: 50%; /* Standard proportion */
    height: 0;
    overflow: hidden;
}

/* Media placeholder styling */
#mediaPlaceholder video,
#mediaPlaceholder img {
    background: black;
    transition: opacity 0.2s ease-in;
}

/* Placeholder for video */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--white);
    stroke-width: 1;
    opacity: 0.3;
}

/* Media Overlay */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.media-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
}

.overlay-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay-company {
    color: var(--white);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 90%;
    text-align: center;
    line-height: 1.2;
}

.overlay-description {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.overlay-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.overlay-bid {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.overlay-cta {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-icon-cta {
    width: 64px;
    height: 64px;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    transition: transform 0.2s ease;
}

.media-overlay:hover .play-icon-cta {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    50% { 
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

.overlay-link {
    color: var(--black);
    background: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid var(--white);
    padding: 0.75rem 2rem;
    display: inline-block;
    transition: all var(--transition-speed);
}

.overlay-link:hover {
    background: transparent;
    color: var(--white);
    transform: scale(1.05);
}

/* Video End Screen */
.video-end-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2rem;
}

/* End screen in fullscreen mode */
:fullscreen .video-end-screen,
:-webkit-full-screen .video-end-screen,
:-moz-full-screen .video-end-screen,
:-ms-fullscreen .video-end-screen {
    position: absolute;
    width: 100%;
    height: 100%;
}

.end-screen-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.end-screen-company {
    color: var(--white);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
}

.end-screen-go {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.end-screen-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.end-screen-bottom .end-screen-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    min-width: 150px;
}

.end-screen-btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-block;
    background: transparent;
}

.end-screen-btn.primary {
    background: var(--white);
    color: var(--black);
}

.end-screen-btn.primary:hover {
    background: transparent;
    color: var(--white);
}

.end-screen-btn.secondary {
    background: transparent;
    color: var(--white);
}

.end-screen-btn.secondary:hover {
    background: var(--white);
    color: var(--black);
}

/* Mobile fullscreen video */
@media (max-width: 768px) {
    #mediaPlaceholder.mobile-fullscreen {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9998 !important;
        background: black !important;
    }
    
    #mediaPlaceholder.mobile-fullscreen video,
    #mediaPlaceholder.mobile-fullscreen img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    
    .mobile-fullscreen-close {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: 2px solid white;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .mobile-fullscreen-close:active {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Mobile specific end screen */
@media (max-width: 768px) {
    .video-end-screen {
        position: fixed;
        padding: 2rem 1.5rem;
    }
    
    .end-screen-company {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 2rem;
    }
    
    .end-screen-go {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .end-screen-bottom .end-screen-btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
}


/* Video Error Popup */
.video-error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--black);
    color: var(--white);
    padding: 3rem;
    border: 3px solid var(--white);
    z-index: 10000;
    animation: popupAppear 0.3s ease-out;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.error-content {
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 900;
}

.error-message {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Live viewer counter - brutalist style */
.viewer-counter {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--white);
    color: var(--black);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: var(--border-width) solid var(--black);
    border-top: var(--border-width) solid var(--black);
    z-index: 10;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--black);
    animation: blink 2s infinite;
}

.viewer-count {
    font-size: 1.2rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* Stats Section - Replacing Chart */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    border: var(--border-width) solid var(--black);
}

.stats-section.stats-two-columns {
    grid-template-columns: 1fr 1fr;
}

.stat-box {
    padding: 2rem 1.5rem;
    border-right: var(--border-width) solid var(--black);
    border-bottom: var(--border-width) solid var(--black);
    position: relative;
    overflow: hidden;
}

.stat-box:last-child {
    border-right: none;
}

.stats-two-columns .stat-box:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.stat-value {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--black);
    transition: width var(--transition-speed) ease;
    z-index: -1;
}

.stat-box:hover::before {
    width: 100%;
}

.stat-box:hover {
    color: var(--white);
}

/* Bid Button Section */
.bid-button-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    border-top: var(--border-width) solid var(--black);
    margin-top: 1.5rem;
}

/* Call to Action Button - Brutalist */
.cta-button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left var(--transition-speed) ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--black);
    border: var(--border-width) solid var(--black);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button:disabled,
.cta-button.disabled {
    background: #666 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.cta-button:disabled:hover,
.cta-button.disabled:hover {
    color: var(--white);
    border: none;
    transform: none;
}

.cta-button:disabled::before,
.cta-button.disabled::before {
    display: none;
}

/* Bidding Resume Countdown */
.bidding-resume-countdown {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    text-align: center;
}

/* Modal Styles - Brutalist */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    background: var(--white);
    color: var(--black);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border: var(--border-width) solid var(--black);
    animation: slideIn 0.2s ease-out;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 2rem;
    border-bottom: var(--border-width) solid var(--black);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Form Styles - Brutalist */
.bid-form, .contact-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: var(--border-width) solid var(--black);
    background: var(--white);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--black);
    color: var(--white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* File upload styling - Brutalist */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 1rem;
    background: var(--white);
    border: var(--border-width) dashed var(--black);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.file-upload:hover .file-upload-label {
    background: var(--black);
    color: var(--white);
}

/* Close button - Brutalist */
.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black);
    font-weight: 300;
    transition: transform var(--transition-speed);
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Submit button in modal - Brutalist */
.submit-button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    max-width: 100%;
    word-break: break-word;
}


.submit-button:hover {
    background: var(--white);
    color: var(--black);
    border: var(--border-width) solid var(--black);
}

/* Button container for second page of bid modal */
#paymentForm > div[style*="display: flex"] {
    width: 100%;
    box-sizing: border-box;
}

#paymentForm .submit-button {
    box-sizing: border-box;
    flex-shrink: 1;
    min-width: 0;
}

/* Ensure preview step doesn't overflow */
#previewStep {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* Payment form specific constraints */
#paymentForm {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-bottom: 1rem;
}

/* Randomize Button */
.randomize-button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: var(--black);
    color: var(--white);
    border: var(--border-width) solid var(--black);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.randomize-button:hover {
    background: var(--white);
    color: var(--black);
}

.randomize-button.randomized {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Error Popup */
.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border: var(--border-width) solid var(--black);
    padding: 3rem;
    text-align: center;
    z-index: 2000;
    max-width: 400px;
}

.error-popup.show {
    display: block;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 900;
}

.error-message {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.error-close {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.error-close:hover {
    background: var(--white);
    color: var(--black);
    border: var(--border-width) solid var(--black);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    border: var(--border-width) solid var(--black);
    margin-top: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    box-sizing: border-box;
}

.success-message.show {
    display: block;
}

/* About Section Styles */
.about-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.about-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.about-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: var(--border-width) solid var(--black);
    border-bottom: var(--border-width) solid var(--black);
    padding: 2rem 0;
}

.step {
    position: relative;
    padding: 1rem 0;
}

.step-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 0.8;
    margin-bottom: 1rem;
    opacity: 0.1;
}

.step-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.step:hover .highlight::after {
    transform: scaleX(1);
}

/* About Page Navigation */
.page-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.nav-button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: inherit;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--black);
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 3rem;
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--black);
}

/* Archive Styles */
.archive-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.archive-stat {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Archive View Toggle */
.archive-view-toggle {
    display: inline-flex;
    gap: 0;
    border: var(--border-width) solid var(--black);
    margin-bottom: 2rem;
}

.view-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--black);
    transition: all var(--transition-speed);
}

.view-toggle-btn:not(:last-child) {
    border-right: var(--border-width) solid var(--black);
}

.view-toggle-btn.active {
    background: var(--black);
}

.view-toggle-btn.active svg {
    stroke: var(--white);
}

.view-toggle-btn:hover:not(.active) {
    background: var(--gray-light);
}

/* Archive Container */
.archive-container {
    width: 100%;
}

/* Archive Cards */
.archive-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-archive {
    text-align: center;
    padding: 4rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.3;
}

.archive-card {
    border: var(--border-width) solid var(--black);
    transition: all var(--transition-speed);
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.archive-card:last-child {
    margin-bottom: 0;
}

.archive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--black);
}

.archive-card-date {
    padding: 1rem 1.5rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-card-content {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    background: var(--white);
}

.archive-card-thumbnail {
    height: 150px;
    background: var(--gray-light);
    overflow: hidden;
    border-right: var(--border-width) solid var(--black);
}

.archive-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.archive-card-placeholder svg {
    width: 50px;
    height: 50px;
    stroke: var(--white);
    opacity: 0.3;
}

.archive-card-info {
    padding: 1.5rem;
}

.archive-card-company {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.archive-card-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: center;
}

.archive-card-bid {
    font-size: 1.25rem;
    font-weight: 900;
}

.archive-card-views {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
}

.archive-card-description {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.8;
    max-width: 600px;
}

.archive-card-play {
    padding: 2rem;
}

.archive-card-play svg {
    width: 30px;
    height: 30px;
    stroke: var(--black);
    transition: all var(--transition-speed);
}

.archive-card:hover .archive-card-play svg {
    transform: scale(1.2);
}

/* Archive Grid View */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.archive-grid-item {
    cursor: pointer;
    transition: all var(--transition-speed);
}

.archive-grid-item:hover {
    transform: translateY(-4px);
}

.archive-grid-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--black);
    border: 2px solid var(--black);
    overflow: hidden;
}

.archive-grid-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: background var(--transition-speed);
    z-index: 1;
    pointer-events: none;
}

.archive-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.archive-grid-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    opacity: 0.3;
}

.archive-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

/* Dark overlay on hover */
.archive-grid-item:hover .archive-grid-thumbnail::before {
    background: rgba(0, 0, 0, 0.8);
}

.archive-grid-item:hover .archive-grid-overlay {
    opacity: 1;
    z-index: 2;
}

.grid-overlay-date {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.grid-overlay-company {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.grid-overlay-amount {
    font-size: 0.875rem;
    font-weight: 700;
}

/* Archive Modal */
.archive-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    padding: 2rem;
    overflow-y: auto;
}

.archive-modal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: var(--border-width) solid var(--black);
    position: relative;
}

.archive-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black);
    z-index: 10;
    transition: transform var(--transition-speed);
}

.archive-modal-close:hover {
    transform: rotate(90deg);
}

.archive-modal-body {
    padding: 2rem;
}

.archive-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.archive-modal-header h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.archive-modal-header p {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.archive-modal-video {
    margin-bottom: 2rem;
    position: relative;
    border: 3px solid var(--black);
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.archive-modal-video video,
.archive-modal-video img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.archive-modal-video .video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-modal-video .video-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--white);
    opacity: 0.3;
}

.archive-modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-stat {
    text-align: center;
    padding: 1.5rem;
    border: var(--border-width) solid var(--black);
}

.modal-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.modal-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
}

.archive-modal-description {
    border-top: var(--border-width) solid var(--black);
    padding-top: 2rem;
}

.archive-modal-description h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.archive-modal-description p {
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.archive-modal-link {
    margin-top: 2rem;
    text-align: center;
}

.modal-link-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-speed);
    border: var(--border-width) solid var(--black);
}

.modal-link-button:hover {
    background: var(--white);
    color: var(--black);
}

.modal-link-button span {
    position: relative;
}

/* Lottery Section */
.lottery-section {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.lottery-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.lottery-stat {
    padding: 1.5rem;
    border: var(--border-width) solid var(--black);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-speed);
    background: var(--white);
}

.lottery-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--black);
    transition: width var(--transition-speed) ease;
    z-index: 0;
}

.lottery-stat:hover::before {
    width: 100%;
}

.lottery-stat:hover {
    color: var(--white);
}

.lottery-stat:hover a {
    color: var(--white) !important;
}

.lottery-stat:hover .lottery-stat-subtext {
    color: var(--white) !important;
}

.lottery-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.lottery-stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.lottery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.lottery-entry, .prediction-entry {
    border: var(--border-width) solid var(--black);
    padding: 2rem;
}

.entry-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.entry-description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.video-requirement {
    background: var(--black);
    color: var(--white);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-align: center;
}

.video-requirement.completed {
    background: green;
}

.lottery-form, .prediction-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-streak {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-light);
    margin-top: 1.5rem;
    font-weight: 700;
}

/* Contact Form Section */
.contact-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    padding-top: 0;
}

.contact-form-container {
    width: 100%;
    max-width: 600px;
}

.contact-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-align: center;
}

/* View counter styling */
.view-counter-container {
    text-align: center;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 2rem;
    }

    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Touch-friendly interactions */
    .stat-box:hover::before,
    .lottery-stat:hover::before {
        width: 0; /* Disable hover fill on mobile */
    }
    
    .stat-box:active {
        background: var(--black);
        color: var(--white);
    }
    
    .lottery-stat:active {
        background: var(--black);
        color: var(--white);
    }
    
    /* Overlay adjustments for mobile */
    .overlay-content {
        padding: 1.5rem;
    }
    
    .overlay-company {
        font-size: 2rem;
    }
    
    .overlay-description {
        font-size: 1rem;
    }
    
    .overlay-link {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .overlay-link:hover {
        background: var(--white);
        color: var(--black);
        transform: none; /* No scale on mobile */
    }
    
    .overlay-link:active {
        background: transparent;
        color: var(--white);
    }
    
    /* Larger touch targets */
    .randomize-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    button, .submit-button {
        min-height: 48px; /* iOS recommended touch target */
    }

    .title {
        font-size: 2.5rem;
    }

    .live-datetime {
        text-align: left;
        font-size: 0.75rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.75rem;
        justify-content: space-between;
    }
    
    .nav-links .nav-link:nth-last-child(2) {
        margin-left: 0;
        margin-right: 0;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .stat-box {
        border-right: none;
    }

    .auction-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .countdown-timer {
        font-size: 2.5rem;
    }

    .cta-button {
        width: 100%;
    }

    .modal {
        padding: 0;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .modal-header {
        padding: 1.5rem 1rem;
        flex-shrink: 0;
        position: relative;
    }
    
    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: scroll;
        padding: 1.5rem;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
        font-weight: 700;
    }
    
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
        min-height: 48px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .media-upload-label {
        padding: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .submit-button {
        width: 100%;
        padding: 1.2rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    
    .currency-selector {
        padding: 0.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row .form-group {
        flex: 1;
    }

    .viewer-counter {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .viewer-count {
        font-size: 1.2rem;
    }

    .sponsor-display {
        padding: 0.75rem 1rem;
    }

    .sponsor-text {
        font-size: 0.65rem;
        display: inline;
        margin-right: 0.15rem;
    }

    .sponsor-name {
        font-size: 1rem;
    }

    /* About Page Mobile */
    .about-section {
        padding: 1rem 0;
    }

    .about-steps {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .step {
        padding: 0.75rem 0;
    }

    .step-number {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .step-text {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .page-navigation {
        margin-top: 2rem;
        flex-wrap: wrap;
    }
    
    .nav-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Calendar Page Mobile */
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.75rem;
    }

    .day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.625rem;
    }

    .day-number {
        font-size: 0.625rem;
    }

    .ad-info {
        padding: 0.5rem;
        font-size: 0.625rem;
    }

    /* Contact Page Mobile */
    .contact-section {
        padding: 2rem 0;
    }

    .contact-title {
        font-size: 1.5rem;
    }
    
    /* Lottery Page Mobile */
    .lottery-stats {
        grid-template-columns: 1fr;
    }
    
    .lottery-content {
        grid-template-columns: 1fr;
    }
    
    /* Archive Page Mobile */
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-stats {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .archive-card-content {
        grid-template-columns: 1fr;
    }
    
    .archive-card-thumbnail {
        height: 200px;
    }
    
    .archive-card-play {
        display: none;
    }
    
    .archive-modal-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Stripe Card Element Styles */
#card-mount-point {
    padding: 12px;
    border: 2px solid #000;
    background: #fff;
    min-height: 50px;
    font-size: 16px;
    transition: border-color 0.15s ease;
}

#card-mount-point:focus-within {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

#card-mount-point.StripeElement--focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

#card-mount-point.StripeElement--invalid {
    border-color: #e5424d;
}

#card-errors {
    color: #e5424d;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* Ensure card element container is interactive */
#card-element {
    margin-top: 1.5rem;
}

#card-element label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Blinking animation for play button */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mobile-specific Contact Page Styles */
@media (max-width: 768px) {
    .contact-section {
        padding: 1rem !important;
        padding-top: 0.5rem !important;
        min-height: calc(100vh - 80px) !important;
        justify-content: flex-start !important;
    }
    
    .contact-form-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
    }
    
    .contact-form {
        padding: 0.5rem !important;
        gap: 1rem !important;
    }
    
    .contact-form textarea {
        min-height: 100px !important;
        max-height: 150px !important;
    }
    
    .contact-title {
        font-size: min(1.8rem, 6vw);
        margin-bottom: 2rem;
        line-height: 1.2;
    }
    
    .contact-form {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-form textarea {
        min-height: 100px;
        max-height: 150px;
    }
}