/* Login Prompt */
.eve-login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
}

.eve-login-box {
    background: #1a1a2e;
    border: 2px solid #16213e;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.eve-login-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 24px;
}

.eve-login-box p {
    color: #a0a0a0;
    margin-bottom: 25px;
}

.eve-login-button {
    display: inline-block;
    transition: transform 0.2s;
}

.eve-login-button:hover {
    transform: scale(1.05);
}

.eve-login-button img {
    max-width: 270px;
    height: auto;
}

/* Payment Required */
.eve-payment-required {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.eve-payment-box {
    background: #000000;
    border: 1px solid #212121;
    border-radius: 12px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.eve-payment-box h3 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

.eve-payment-box > p {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
}

.eve-payment-instructions {
    padding: 0;
    margin: 0 0 25px 0;
}

.eve-payment-instructions h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

/* Tier Grid */
.eve-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.eve-tier-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.eve-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.eve-tier-popular {
    border-color: #4CAF50;
    background: linear-gradient(to bottom, #e8f5e9 0%, #ffffff 30%);
}

.eve-tier-best-value {
    border-color: #ffc107;
    background: linear-gradient(to bottom, #fff9e6 0%, #ffffff 30%);
}

.eve-tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.eve-badge-gold {
    background: #ffc107;
    color: #664d03;
}

.eve-tier-header h5 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1a1a2e;
}

.eve-tier-duration {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.eve-tier-price {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
    margin: 15px 0;
}

.eve-tier-description {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* Payment Steps */
.eve-payment-steps {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin: 25px 0 15px 0;
    border-radius: 4px;
}

.eve-payment-steps h4 {
    margin-top: 0;
    color: #333;
}

.eve-payment-instructions ol {
    margin: 15px 0;
    padding-left: 20px;
}

.eve-payment-instructions li {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

.eve-payment-instructions code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    color: #d63031;
    border: 1px solid #ddd;
}

.eve-payment-note {
    color: #333;
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
}

.eve-payment-note strong {
    color: #856404;
}

/* Button Styles */
.eve-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 20px;
}

.eve-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.eve-button:active {
    transform: translateY(0);
}

.eve-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Verification Status */
#eve-verification-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

#eve-verification-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

#eve-verification-status.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Stream Container */
.eve-stream-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px 5px;
}

.eve-access-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.eve-access-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eve-days-remaining {
    font-size: 14px;
    opacity: 0.9;
}

/* Video Wrapper */
.eve-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0; /* Fix: remove negative height */
    overflow: hidden;
    background: #000;
    margin-top: 0px;
}


.eve-video-wrapper iframe,
.eve-video-wrapper #eve-stream-player {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    margin-top: 0px;
    pointer-events: auto;
}

/* Protective overlay to prevent right-click and interaction */
.eve-video-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    cursor: default;
}
.eve-stream-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.eve-stream-info p {
    margin: 0;
    color: #555;
}

.eve-warning {
    margin-top: 15px !important;
    padding: 12px;
    background: #e3f2fd;
    border-left: 4px solid #54acfa;
    border-radius: 4px;
    color: #1565c0 !important;
    font-size: 13px;
}

/* Error Messages */
.eve-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eve-login-box,
    .eve-payment-box {
        padding: 25px;
    }

    .eve-access-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .eve-payment-steps {
        padding: 15px;
    }

    .eve-tier-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

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

.button-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

/* Color Detector Section */
.eve-detector-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.eve-detector-header {
    background: #1a1a2e;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eve-detector-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.eve-detector-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eve-detector-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.eve-detector-status.inactive {
    background: #e3f2fd;
    color: #1976d2;
}

.eve-detector-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.eve-detector-content {
    padding: 20px;
}

.eve-detector-colortags h4,
.eve-detector-settings h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

/* ColorTag Grid */
.eve-colortag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.eve-colortag-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    min-width: 0;
}

.eve-colortag-item.testing {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.eve-colortag-item.testing::before {
    content: 'TESTING';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 220, 220, 0.90);
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    letter-spacing: 2px;
    z-index: 10;
}

.eve-colortag-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.eve-colortag-item.selected {
    background: #e3f2fd;
    border-color: #1976d2;
}

.eve-colortag-checkbox {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.eve-colortag-image {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    image-rendering: pixelated;
}

.eve-colortag-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.eve-colortag-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.eve-colortag-tolerance,
.eve-colortag-sensitivity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eve-colortag-tolerance label,
.eve-colortag-sensitivity label {
    font-size: 11px;
    color: #666;
    min-width: 65px;
}

.eve-colortag-tolerance input[type="range"],
.eve-colortag-sensitivity input[type="range"] {
    flex: 1;
    min-width: 100px;
}

.eve-colortag-tolerance .eve-value-input,
.eve-colortag-sensitivity .eve-value-input {
    width: 50px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    text-align: right;
}

.eve-colortag-tolerance .eve-value-input:focus,
.eve-colortag-sensitivity .eve-value-input:focus {
    outline: none;
    border-color: #1976d2;
}

.eve-colortag-tolerance span,
.eve-colortag-sensitivity span {
    font-size: 11px;
    color: #888;
}

.eve-colortag-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Settings Grid */
.eve-detector-settings {
    margin-top: 25px;
}

.eve-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.eve-setting-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eve-setting-item label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.eve-setting-item input[type="range"],
.eve-setting-item select {
    width: 100%;
}

.eve-setting-item select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.eve-setting-item span {
    font-size: 11px;
    color: #888;
}

/* Detector Controls */
.eve-detector-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.eve-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.eve-btn-primary {
    background: #4CAF50;
    color: white;
}

.eve-btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.eve-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.eve-btn-secondary:hover {
    background: #e0e0e0;
}

.eve-btn-danger {
    background: #d32f2f;
    color: white;
}

.eve-btn-danger:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Detector Help */
.eve-detector-help {
    background: #e3f2fd;
    border: 1px solid #54acfa;
    border-radius: 0 0 6px 6px;
    padding: 15px;
    margin: 0 20px 0 20px;
}

.eve-detector-help p {
    margin: 8px 0;
    color: #1565c0;
    font-size: 13px;
    line-height: 1.6;
}

.eve-detector-help strong {
    color: #0d47a1;
}

/* Color Alert */
.eve-color-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.eve-alert-details {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .eve-detector-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .eve-colortag-grid {
        grid-template-columns: 1fr;
    }

    .eve-settings-grid {
        grid-template-columns: 1fr;
    }

    .eve-detector-controls {
        flex-direction: column;
    }

    .eve-btn {
        width: 100%;
    }
}
