* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

h1 {
    color: #333;
    margin-bottom: 1rem;
}

p {
    color: #666;
    margin-bottom: 1.5rem;
}

#installBtn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#installBtn:hover {
    background: #5a67d8;
}

/* iOS Install Prompt */
#ios-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
    max-width: 90%;
    width: 320px;
}

.ios-install-content {
    padding: 20px;
    text-align: center;
}

.ios-install-content h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.ios-install-content p {
    margin: 0 0 15px 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ios-install-content svg {
    color: #007AFF;
}

#ios-install-dismiss {
    background: #007AFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

/* iOS Modal */
.ios-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.ios-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.ios-modal-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

.ios-steps {
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.step-number {
    background: #007AFF;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.step p {
    margin: 0;
    color: #555;
    flex: 1;
    padding-top: 3px;
}

.share-icon {
    vertical-align: middle;
    color: #007AFF;
}

.close-modal {
    width: 100%;
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hide iOS-specific elements on non-iOS devices */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific styles */
}

/* Installed app mode */
.installed-app .install-btn {
    display: none !important;
}