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

/* Stylish Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 6px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0099cc, #007acc);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #00d4ff #0a0a0a;
}

body {
    font-family: 'Inter', 'Roboto Mono', 'Consolas', monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 70%, #0f0f23 100%);
    min-height: 100vh;
    color: #00d4ff;
    line-height: 1.6;
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Authentication Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.auth-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.auth-modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.auth-header h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #66ccff;
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    color: #00d4ff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #00d4ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0099cc;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

.form-group input::placeholder {
    color: rgba(0, 212, 255, 0.5);
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #00d4ff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle:focus {
    outline: none;
}

.eye-icon {
    font-size: 16px;
    user-select: none;
    transition: transform 0.2s ease;
}

.password-toggle:active .eye-icon {
    transform: scale(0.9);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #66ccff;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #00d4ff;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #00d4ff;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.forgot-password, .terms-link {
    color: #0099cc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover, .terms-link:hover {
    color: #00d4ff;
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-btn.primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #000;
}

.auth-btn.primary:hover {
    background: linear-gradient(45deg, #0099cc, #00d4ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #66ccff;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #0099cc;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.auth-switch a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* Deriv OAuth Styles */
.deriv-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #66ccff;
    font-size: 0.9rem;
}

.info-item i {
    color: #00d4ff;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.deriv-auth-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #0a0a0a;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.deriv-auth-btn:hover {
    background: linear-gradient(135deg, #0099cc 0%, #007acc 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.deriv-auth-btn:active {
    transform: translateY(0);
}

.deriv-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.deriv-auth-btn span {
    flex: 1;
    text-align: center;
}

.deriv-auth-btn i {
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.deriv-auth-btn:hover i {
    transform: translateX(3px);
}

.deriv-signup-btn {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #00d4ff;
    border-radius: 12px;
    background: transparent;
    color: #00d4ff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.deriv-signup-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #0099cc;
    color: #0099cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.deriv-signup-btn:active {
    transform: translateY(0);
}

.deriv-signup-btn .deriv-logo {
    background: rgba(0, 212, 255, 0.15);
}

.deriv-signup-btn span {
    flex: 1;
    text-align: center;
}

.deriv-signup-btn i {
    opacity: 0.8;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.deriv-signup-btn:hover i {
    transform: translateX(2px);
}

.auth-footer {
    margin-top: 25px;
}

.terms-text {
    font-size: 0.8rem;
    color: rgba(255, 235, 59, 0.7);
    text-align: center;
    line-height: 1.4;
}

.terms-text .terms-link {
    color: #0099cc;
    text-decoration: none;
}

.terms-text .terms-link:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.welcome-notification {
    animation: slideInRight 0.5s ease-out;
}

/* Processing Steps Styles */
.processing-steps {
    margin-top: 30px;
    padding: 20px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 235, 59, 0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step.active {
    color: #4CAF50;
}

.step.processing {
    color: #00d4ff;
}

.step i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.step.active i {
    color: #4CAF50;
}

.step.processing i {
    color: #00d4ff;
}

.processing-spinner {
    text-align: center;
    margin-bottom: 20px;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 6px;
    min-width: 200px;
}

.user-details {
    flex: 1;
}

.user-name {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.user-account {
    color: #66ccff;
    font-size: 0.8rem;
    opacity: 0.8;
}

.logout-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    border-radius: 6px;
    color: #ff6b6b;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    color: #fff;
    transform: scale(1.05);
}

.logout-btn:active {
    transform: scale(0.95);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0,212,255,0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.7));
}

.brand-text {
    text-align: left;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: #66ccff;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.header-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #66ccff;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.connection-status {
    font-size: 1.5rem;
    color: #00ff88;
    animation: pulse 2s infinite;
}

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

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 6px;
    padding: 10px 15px;
    min-width: 200px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 2px;
}

.user-account {
    font-size: 0.75rem;
    color: #66ccff;
    opacity: 0.8;
}

.logout-btn {
    background: rgba(255, 68, 79, 0.2);
    border: 1px solid #FF444F;
    color: #FF444F;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(255, 68, 79, 0.3);
    color: #FF6B6B;
    transform: translateY(-1px);
}

/* Notification System */
.notification {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.notification-success {
    border-color: #4CAF50;
}

.notification-error {
    border-color: #FF444F;
}

.notification-warning {
    border-color: #FF9800;
}

.notification-info {
    border-color: #2196F3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #00d4ff;
}

.notification-content i:first-child {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-success .notification-content i:first-child {
    color: #4CAF50;
}

.notification-error .notification-content i:first-child {
    color: #FF444F;
}

.notification-warning .notification-content i:first-child {
    color: #FF9800;
}

.notification-info .notification-content i:first-child {
    color: #2196F3;
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #66ccff;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 215, 0, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #00d4ff;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
}

/* Controls Styles */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00d4ff;
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    box-shadow: 0 0 30px rgba(0,212,255,0.3);
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-group label {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.control-group select {
    padding: 10px 15px;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: #000000;
    color: #00d4ff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 0 10px rgba(0,212,255,0.1);
}

.control-group select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,212,255,0.4), inset 0 0 15px rgba(0,212,255,0.2);
    background: #1a1a2e;
}

.control-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.5);
    background: #1a1a2e;
}

.status-indicator {
    display: flex;
    align-items: center;
}

.status-connected, .status-disconnected {
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.status-connected {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #000000;
    border-color: #00d4ff;
    animation: pulse 2s infinite;
    text-shadow: none;
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.status-disconnected {
    background: #000000;
    color: #FF4444;
    border-color: #FF4444;
    box-shadow: 0 0 15px rgba(255,68,68,0.3);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255,215,0,0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255,215,0,0.8);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Card Styles */
.stat-card {
    background: linear-gradient(145deg, #0a0a0a, #1a1a2e);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #00d4ff;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0,212,255,0.3);
    border-color: #0099cc;
}

.stat-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #00d4ff;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

.card-description {
    font-size: 0.9rem;
    color: #66ccff;
    opacity: 0.8;
    margin-bottom: 15px;
    font-style: italic;
    text-align: center;
}

/* Extremes Card */
.extremes-container {
    display: flex;
    gap: 20px;
}

.extreme-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 6px;
    background: linear-gradient(145deg, #0a0a0a, #16213e);
    border: 2px solid #333333;
    transition: all 0.3s ease;
}

.extreme-item:hover {
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.2);
}

.extreme-item .label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255,215,0,0.3);
}

.extreme-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(255,215,0,0.5);
}

/* Prediction Highlights */
.prediction-card {
    grid-column: span 2;
    background: linear-gradient(145deg, #2d2d00, #1a1a1a);
    border: 3px solid #00d4ff;
    box-shadow: 0 0 30px rgba(255,215,0,0.4);
}

.prediction-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    min-height: 60px;
    align-items: center;
}

.prediction-item {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #000000;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255,215,0,0.3);
    border: 2px solid #00d4ff;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.prediction-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #66ccff, #00d4ff);
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: predictionGlow 3s ease-in-out infinite;
}

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

.prediction-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255,215,0,0.5);
}

.prediction-digit {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.prediction-percentage {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.prediction-countdown {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FF6B35;
    text-align: center;
    padding: 5px 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border: 2px solid #FF6B35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    animation: pulse-countdown 1s infinite;
}

@keyframes pulse-countdown {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.prediction-markets {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.3;
    color: #2d2d2d;
}

.prediction-market-tag {
    display: inline-block;
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 8px;
    margin: 2px;
    font-size: 0.8rem;
    font-weight: 600;
}

.no-predictions {
    color: #00d4ff;
    font-style: italic;
    opacity: 0.7;
    text-align: center;
    font-size: 1.1rem;
}

/* Digit-specific colors - Updated for yellow/black theme */
.digit-0, .digit-chip.digit-0 { background: linear-gradient(45deg, #00d4ff, #0099cc); color: #000; }
.digit-1, .digit-chip.digit-1 { background: linear-gradient(45deg, #66ccff, #00d4ff); color: #000; }
.digit-2, .digit-chip.digit-2 { background: linear-gradient(45deg, #0099cc, #007acc); color: #000; }
.digit-3, .digit-chip.digit-3 { background: linear-gradient(45deg, #00d4ff, #66ccff); color: #000; }
.digit-4, .digit-chip.digit-4 { background: linear-gradient(45deg, #007acc, #00d4ff); color: #000; }
.digit-5, .digit-chip.digit-5 { background: linear-gradient(45deg, #66ccff, #0099cc); color: #000; }
.digit-6, .digit-chip.digit-6 { background: linear-gradient(45deg, #0099cc, #00d4ff); color: #000; }
.digit-7, .digit-chip.digit-7 { background: linear-gradient(45deg, #00d4ff, #007acc); color: #000; }
.digit-8, .digit-chip.digit-8 { background: linear-gradient(45deg, #007acc, #66ccff); color: #000; }
.digit-9, .digit-chip.digit-9 { background: linear-gradient(45deg, #66ccff, #00d4ff); color: #000; }

/* Footer */
.footer {
    text-align: center;
    color: #66ccff;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
    text-shadow: 0 0 8px rgba(0,212,255,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .current-price-card {
        grid-column: span 1;
    }
    
    .digit-card {
        grid-column: span 1;
    }
    
    .last-digits-card {
        grid-column: span 1;
    }
    
    .digit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .extremes-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .price-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .prediction-card {
        grid-column: span 1;
    }
    
    .prediction-item {
        min-width: 150px;
        padding: 15px;
    }
    
    .prediction-digit {
        font-size: 2rem;
    }
    
    .prediction-percentage {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 20px;
    }
    
    .digit-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        padding: 15px;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255,215,0,0.6);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255,215,0,0.9);
    }
}

/* Scrollbar Styling */
.last-digits-container::-webkit-scrollbar {
    width: 8px;
}

.last-digits-container::-webkit-scrollbar-track {
    background: #333333;
    border-radius: 4px;
}

.last-digits-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    border-radius: 4px;
    border: 1px solid #000000;
}

.last-digits-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0099cc, #00d4ff);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #00d4ff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 20px;
}

.payment-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #2d2d00 100%);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: modalSlideIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-icon {
    font-size: 48px;
    color: #00d4ff;
    margin-bottom: 20px;
}

.payment-header h2 {
    color: #00d4ff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.payment-header p {
    color: #cccccc;
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.payment-plans {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.plan-card {
    background: rgba(45, 45, 0, 0.3);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.plan-card.featured {
    border-color: #00d4ff;
    background: linear-gradient(135deg, rgba(45, 45, 0, 0.5) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #00d4ff;
    color: #000;
    padding: 5px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-card h3 {
    color: #00d4ff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price .currency {
    color: #00d4ff;
    font-size: 24px;
    font-weight: 600;
    vertical-align: top;
}

.plan-price .amount {
    color: #00d4ff;
    font-size: 48px;
    font-weight: 700;
}

.plan-price .period {
    color: #cccccc;
    font-size: 18px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.plan-features li i {
    margin-right: 12px;
    width: 16px;
}

.plan-features li .fa-check {
    color: #4CAF50;
}

.plan-features li .fa-times {
    color: #999;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #00d4ff;
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #0099cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a0a;
}

.btn-full {
    width: 100%;
}

.payment-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.payment-note {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-note i {
    color: #4CAF50;
}

.payment-terms {
    color: #999;
    font-size: 12px;
}

.payment-terms a {
    color: #00d4ff;
    text-decoration: none;
}

.payment-terms a:hover {
    text-decoration: underline;
}

/* Responsive Payment Modal */
@media (max-width: 768px) {
    .payment-modal {
        padding: 10px;
    }
    
    .payment-modal-content {
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    .payment-plans {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-header h2 {
        font-size: 24px;
    }
    
    .payment-header p {
        font-size: 16px;
    }
    
    .plan-price .amount {
        font-size: 36px;
    }
}

/* Enhanced scrollbar for modal content areas */
.auth-modal-content::-webkit-scrollbar,
.payment-modal-content::-webkit-scrollbar {
    width: 8px;
}

.auth-modal-content::-webkit-scrollbar-track,
.payment-modal-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
}

.auth-modal-content::-webkit-scrollbar-thumb,
.payment-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 8px;
    border: 1px solid rgba(26, 26, 26, 0.8);
}

.auth-modal-content::-webkit-scrollbar-thumb:hover,
.payment-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0099cc, #007acc);
}

/* Payment Methods */
.payment-methods {
    margin: 20px 0;
    text-align: center;
}

.payment-methods h4 {
    color: #f0b90b;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.payment-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.payment-option {
    flex: 1;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #ccc;
    font-size: 12px;
}

.payment-option i {
    font-size: 18px;
    color: #f0b90b;
}

.payment-option:hover {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.3);
    color: #f0b90b;
}

.payment-option.active {
    background: rgba(240, 185, 11, 0.2);
    border-color: #f0b90b;
    color: #f0b90b;
    box-shadow: 0 0 10px rgba(240, 185, 11, 0.2);
}

.payment-option.active i {
    color: #fdd835;
}

/* Binance Modal Styles */
.binance-payment-info {
    padding: 20px 0;
}

.binance-pay-section {
    margin-bottom: 25px;
}

.binance-pay-section h4 {
    color: #f0b90b;
    margin-bottom: 15px;
    font-size: 16px;
}

.binance-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.binance-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-align: left;
}

.binance-option:hover {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.3);
    transform: translateY(-2px);
}

.binance-option i {
    font-size: 24px;
    color: #f0b90b;
    min-width: 30px;
}

.binance-option div {
    flex: 1;
}

.binance-option strong {
    display: block;
    color: #f0b90b;
    font-size: 16px;
    margin-bottom: 5px;
}

.binance-option p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
}

/* USDT Modal Styles */
.usdt-payment-info {
    padding: 20px 0;
}

.payment-details {
    text-align: center;
    margin-bottom: 25px;
}

.payment-details h3 {
    color: #f0b90b;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.network-info {
    background: rgba(240, 185, 11, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #f0b90b;
    margin-top: 15px;
}

.network-info i {
    color: #f0b90b;
    margin-right: 8px;
}

.wallet-address-section {
    margin-bottom: 25px;
}

.wallet-address-section label {
    display: block;
    color: #f0b90b;
    margin-bottom: 10px;
    font-weight: 600;
}

.address-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.address-container input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.copy-btn {
    padding: 12px 20px;
    background: #f0b90b;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: #fdd835;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.address-note {
    background: rgba(255, 193, 7, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #0099cc;
    color: #0099cc;
    font-size: 14px;
}

.address-note i {
    margin-right: 8px;
}

.payment-steps {
    margin-bottom: 25px;
}

.payment-steps h4 {
    color: #f0b90b;
    margin-bottom: 15px;
    font-size: 16px;
}

.payment-steps ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.payment-steps li {
    counter-increment: step-counter;
    position: relative;
    padding: 10px 0 10px 40px;
    color: #ccc;
    line-height: 1.5;
}

.payment-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 8px;
    background: #f0b90b;
    color: #000;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.security-info {
    background: rgba(0, 255, 0, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #00ff00;
    margin-bottom: 25px;
}

.security-info h4 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 16px;
}

.security-info i {
    color: #00ff00;
    margin-right: 8px;
}

.security-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-info li {
    padding: 5px 0;
    color: #ccc;
    display: flex;
    align-items: center;
}

.security-info li i {
    margin-right: 10px;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Binance Payment Link Styling */
.binance-pay-link-section {
    margin: 20px 0;
}

.payment-link-container {
    margin: 15px 0;
}

.payment-request-box {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.request-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #00d4ff;
    font-size: 18px;
    font-weight: bold;
}

.payment-request-box p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.binance-pay-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, #00d4ff, #0099cc);
    color: #000000;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    word-break: break-all;
}

.binance-pay-link:hover {
    background: linear-gradient(145deg, #0099cc, #007acc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    border-color: #66ccff;
}

.binance-pay-link:active {
    transform: translateY(0);
}

.alternative-payment {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2d2d2d;
}

.alternative-payment h4 {
    color: #999999;
    font-size: 16px;
    margin-bottom: 15px;
}

.alternative-payment .wallet-address-section {
    margin-top: 15px;
}

.alternative-payment .address-container input {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #2d2d2d;
}

.alternative-payment .address-note {
    font-size: 14px;
    color: #999999;
}

/* Welcome Modal Styles */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-modal.show {
    opacity: 1;
    visibility: visible;
}

.welcome-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #00d4ff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
    animation: welcomeSlideIn 0.5s ease-out;
}

@keyframes welcomeSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.welcome-header {
    margin-bottom: 30px;
}

.welcome-icon {
    margin-bottom: 20px;
}

.welcome-icon i {
    font-size: 64px;
    color: #4CAF50;
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.welcome-header h2 {
    color: #00d4ff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.welcome-header p {
    color: #CCCCCC;
    font-size: 16px;
    opacity: 0.9;
}

.welcome-details {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.welcome-user-info {
    display: grid;
    gap: 12px;
}

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

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

.welcome-info-label {
    color: #00d4ff;
    font-weight: 600;
    font-size: 14px;
}

.welcome-info-value {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
}

.welcome-footer {
    margin-top: 30px;
}

.welcome-footer .btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.welcome-footer .btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.welcome-footer .btn i {
    margin-right: 8px;
}

/* Responsive Welcome Modal */
@media (max-width: 768px) {
    .welcome-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .welcome-header h2 {
        font-size: 24px;
    }
    
    .welcome-icon i {
        font-size: 48px;
    }
}

/* PWA Specific Styles */
.pwa-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.pwa-install-btn i {
    font-size: 16px;
}

.update-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #0a0a0a;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
}

.update-notification.show {
    top: 20px;
}

.update-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.update-content button {
    background: #0a0a0a;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-content button:hover {
    background: #00d4ff;
    color: #0a0a0a;
}

.install-success {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #00ff88, #00cc66);
    color: #0a0a0a;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
}

.install-success.show {
    top: 20px;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

/* PWA Mode Styles */
.pwa-mode {
    /* Hide elements that don't make sense in standalone mode */
    overflow-x: hidden;
}

.pwa-mode .pwa-install-btn {
    display: none !important;
}

/* PWA Display Mode Specific Styles */
@media all and (display-mode: standalone) {
    body {
        user-select: none; /* Prevent text selection in PWA mode */
    }
    
    .external-link::after {
        content: " ↗";
        opacity: 0.6;
    }
}

/* PWA Safe Area Handling for devices with notches */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .auth-modal {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* PWA Splash Screen Styles (iOS) */
@media (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    /* iPhone X/XS styles */
}

@media (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) {
    /* iPhone XR styles */
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* PWA Animation Enhancements */
@keyframes pwaInstallPulse {
    0% { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(0, 212, 255, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3); }
}

.pwa-install-btn.pulse {
    animation: pwaInstallPulse 2s infinite;
}
