/* Mobile-First Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.invite-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Header */
.header {
    padding: 20px 16px 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B9D, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    background: linear-gradient(135deg, #FF6B9D, #FFD700);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-block;
    text-transform: uppercase;
}

/* Content */
.content {
    flex: 1;
    padding: 24px 16px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

/* Celebration */
.celebration {
    text-align: center;
    margin-bottom: 32px;
}

.celebration-emoji {
    font-size: 48px;
    /* margin-bottom: 16px; */
    animation: bounce 2s infinite;
}

@@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.celebration h1 {
    font-size: 28px;
    font-weight: 800;
    /* color: #FFD700; */
    background: linear-gradient(135deg, #FF6B9D, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: #CCCCCC;
    font-weight: 500;
}

/* Code Section - Most Important */
.code-section {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.code-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6B9D, #FFD700);
    border-radius: 24px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.code-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.code-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.code-display {
    background: #000000;
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 16px 20px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 1px;
    word-break: break-all;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    position: relative;
}

.code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6B9D, #FFD700);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.copy-button {
    background: linear-gradient(135deg, #FF6B9D, #FFD700);
    border: none;
    border-radius: 16px;
    padding: 12px 24px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.copy-button:hover {
    background: linear-gradient(135deg, #FF8FB1, #FFE55C);
    transform: translateY(-2px);
}

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

.code-hint {
    font-size: 12px;
    color: #CCCCCC;
    margin-top: 8px;
}

/* Download Section */
.download-section {
    margin-bottom: 50px;
    text-align: center;
    margin-top: 50px;
}

.download-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-btn {
    display: block;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.store-btn:hover {
    transform: scale(1.05);
}

.store-btn img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Steps */
.steps {
    margin-bottom: 24px;
}

.steps h3 {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-align: center;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 16px;
}

.step-number {
    background: #00D4AA;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: #CCCCCC;
    line-height: 1.4;
}

.step-text strong {
    color: #FFD700;
    font-weight: 700;
}

/* Footer Note */
.footer-note {
    text-align: center;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
}

.footer-note p {
    font-size: 12px;
    color: #FFC107;
    margin: 0;
    line-height: 1.4;
}

/* Tablet and Desktop */
@@media (min-width: 768px) {
    .content {
        max-width: 500px;
        padding: 32px 24px;
    }
    
    .celebration h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .code-display {
        font-size: 20px;
        max-width: 320px;
    }
    
    .store-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    
    .store-btn {
        max-width: 180px;
    }
}

@@media (min-width: 1024px) {
    .content {
        max-width: 600px;
        padding: 40px 32px;
    }
    
    .celebration h1 {
        font-size: 36px;
    }
    
    .code-display {
        font-size: 22px;
        max-width: 360px;
    }
}
