* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0f1429 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(76, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 194, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(138, 43, 226, 0.06) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-20px, 20px) scale(1.1);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 60px 20px 40px;
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5), 0 0 60px rgba(76, 0, 255, 0.3);
    background: linear-gradient(135deg, #00c2ff 0%, #8a2be2 50%, #4c00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.85;
    color: #b0b8d4;
    font-weight: 400;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #b0b8d4;
    font-size: 1em;
}

.info-value {
    color: #00c2ff;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.3);
}

.video-container,
.faucet-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover,
.faucet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.2);
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 1em;
}

input[type="text"] {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    color: #ffffff;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input[type="text"]:focus {
    outline: none;
    border-color: #00c2ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.2);
}

input[type="text"]:invalid {
    border-color: #ff4757;
}

small {
    display: block;
    margin-top: 8px;
    color: #8892b0;
    font-size: 0.9em;
}

.captcha-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.watch-button,
.claim-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00c2ff 0%, #8a2be2 50%, #4c00ff 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.watch-button:hover:not(:disabled),
.claim-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.6);
}

.watch-button:active,
.claim-button:active {
    transform: translateY(0);
}

.watch-button:disabled,
.claim-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

#applixir-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-stats,
.payout-progress {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 194, 255, 0.2);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-stats h3,
.payout-progress h3 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    color: #00c2ff;
}

.video-stats .stat {
    font-size: 2.5em;
    font-weight: 700;
    margin: 15px 0;
    text-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
}

.video-stats .label {
    font-size: 1em;
    opacity: 0.8;
    color: #b0b8d4;
}

.payout-progress .progress-info {
    margin: 20px 0;
}

.payout-progress .progress-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payout-progress .progress-stat:last-child {
    border-bottom: none;
}

.payout-progress .progress-label {
    color: #b0b8d4;
    font-size: 1em;
}

.payout-progress .progress-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1em;
}

.payout-progress .progress-value.highlight {
    color: #00c2ff;
    font-weight: 700;
    font-size: 1.3em;
    text-shadow: 0 0 15px rgba(0, 194, 255, 0.5);
}

.payout-progress .payout-notice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 194, 255, 0.1);
    border: 1px solid rgba(0, 194, 255, 0.3);
    border-radius: 10px;
    color: #b0b8d4;
    font-size: 1em;
}

.payout-progress .payout-notice strong {
    color: #00c2ff;
    font-size: 1.2em;
}

/* Progress Bar Styles */
.progress-bar-container {
    margin: 25px 0;
}

.progress-bar-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 194, 255, 0.2);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c2ff 0%, #8a2be2 50%, #4c00ff 100%);
    background-size: 200% 100%;
    border-radius: 18px;
    transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.6);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(0, 194, 255, 0.6);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
    }
}

.progress-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.progress-bar-label {
    text-align: center;
    margin-top: 12px;
    font-size: 0.95em;
    color: #b0b8d4;
    font-weight: 500;
}

.payout-success,
.video-credited {
    padding: 20px;
    margin: 10px 0;
}

.payout-success h3 {
    color: #10b981;
    font-size: 1.6em;
    margin-bottom: 15px;
}

.video-credited h3 {
    color: #00c2ff;
    font-size: 1.4em;
    margin-bottom: 12px;
}

.pending-balance {
    color: #8a2be2;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 10px;
}

.info-text {
    color: #b0b8d4;
    font-size: 0.95em;
    margin-top: 10px;
}

.result {
    margin-top: 25px;
    padding: 18px 20px;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid;
}

.result.hidden {
    display: none;
}

.result.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.result.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.tx-hash {
    margin-top: 12px;
    font-size: 0.9em;
    word-break: break-all;
    font-family: 'SF Mono', 'Monaco', monospace;
    opacity: 0.9;
}

.info-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-section h2 {
    color: #00c2ff;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-shadow: 0 0 15px rgba(0, 194, 255, 0.3);
}

.info-section ol,
.info-section ul {
    margin-left: 25px;
    line-height: 2;
    color: #b0b8d4;
}

.info-section li {
    margin-bottom: 8px;
}

.info-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #b0b8d4;
}

.info-section a {
    color: #00c2ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.info-section a:hover {
    color: #8a2be2;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.mode-switch {
    text-align: center;
    margin: 25px 0;
}

.mode-switch a {
    color: #00c2ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mode-switch a:hover {
    color: #8a2be2;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.fallback-message {
    text-align: center;
    padding: 50px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fallback-message h3 {
    color: #00c2ff;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.fallback-message p {
    color: #b0b8d4;
    line-height: 1.8;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #00c2ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    font-size: 0.95em;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .video-container,
    .faucet-card {
        padding: 25px;
    }

    .info-box {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .info-section {
        padding: 20px;
    }

    .video-stats .stat {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    header {
        padding: 40px 20px 30px;
    }

    .watch-button,
    .claim-button {
        font-size: 15px;
        padding: 15px;
    }
}

/* Mode Tabs */
.mode-tabs {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    justify-content: center;
}

.tab-button {
    flex: 1;
    padding: 15px 25px;
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #8a2be2 0%, #9d4edd 100%);
    border-color: #8a2be2;
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.mode-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#game-container {
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .mode-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    #game-container iframe {
        height: 400px !important;
    }
}
