/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Header */
.header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 60px;
}

.back-btn {
    background: #FF6B35;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* App Container */
.app-container {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f5f5;
}

#app-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Mobile Redirect */
.mobile-redirect {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: white;
    text-align: center;
    padding: 20px;
}

.redirect-content {
    max-width: 400px;
}

.redirect-logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 20px;
}

.mobile-redirect h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.mobile-redirect p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.redirect-btn {
    display: inline-block;
    background: white;
    color: #FF6B35;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.redirect-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

.redirect-note a {
    color: white;
    text-decoration: underline;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.mobile-redirect h1 {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    
    .back-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .app-container {
        top: 70px;
    }
    
    .mobile-redirect h1 {
        font-size: 1.5rem;
    }
    
    .mobile-redirect p {
        font-size: 1rem;
    }
}
