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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    background: #b3272a;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-container p {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px 0;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Info Section */
.info-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-card h2 {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* User Info */
.user-info {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 0 auto;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.user-info h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 20px;
}

#user-details {
    color: #666;
    line-height: 1.8;
}

#user-details p {
    margin-bottom: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
}

#user-details strong {
    color: #333;
}

/* Tawk.to Embedded Chat */
.tawk-container {
    background: #b3272a;
    margin: 0 auto;
    max-width: 100vw;
    max-height: 100vh;
    width: 400px;
    height: 800px;
    overflow: hidden;
}

#tawk_6854f8f2f436fc190bbc11c3 {
    margin: 0 auto;
    max-width: 100vw;
    width: 100%;
    height: 100%;
}

/* Error */
.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    text-align: center;
    padding: 20px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-container h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-container p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 480px) {
    .header h1 {
        font-size: 28px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h2 {
        font-size: 20px;
    }
}