:root {
    --primary: #00f7ff;
    --secondary: #ff00ea;
    --background: #0a0a0f;
    --card-bg: rgba(16, 16, 24, 0.95);
}

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

body {
    background: var(--background);
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-y: auto; /* Changed from hidden to auto */
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, var(--background) 100%);
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1920px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
    perspective: 1000px;
}

.glitch-wrapper {
    margin-bottom: 3rem;
}

.glitch {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary),
                -0.05em -0.025em 0 var(--secondary);
    animation: glitch 500ms infinite;
}

.status-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: none;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 247, 255, 0.15);
}

.status-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.status-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notify-btn.success {
    background: linear-gradient(45deg, #00ff95, #00a3ff);
    opacity: 0.8;
}

.notify-btn.error {
    background: linear-gradient(45deg, #ff3434, #ff006b);
    opacity: 0.8;
}

.notify-btn:disabled {
    cursor: default;
    transform: none;
    opacity: 0.7;
}


.status-message {
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 90%;
    animation: progress 2s ease-in-out infinite;
}

.notify-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.notify-btn:hover {
    transform: translateY(-2px);
}

.promo-card {
    margin-top: 2rem;
    border: 1px solid var(--primary);
    animation: glow 2s infinite alternate;
    background: linear-gradient(165deg, 
        rgba(16, 16, 24, 0.98) 0%, 
        rgba(16, 16, 24, 0.95) 50%,
        rgba(16, 16, 24, 0.90) 100%
    );
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    height: auto;
    min-height: auto;
}

.promo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.new-badge {
    background: var(--accent-gradient);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.feature-item:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
    filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.3));
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateZ(10px);
}

.feature-details h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.feature-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.promo-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.promo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 1.8rem;
    text-decoration: none;
    margin: 1.5rem 0;
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
}

.promo-link:hover {
    transform: translateX(5px) translateZ(10px);
    text-shadow: 0 0 20px var(--primary);
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.link-arrow {
    transition: transform 0.3s ease;
}

.promo-link:hover .link-arrow {
    transform: translateX(5px);
}

.promo-btn {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    transform-origin: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 1.2rem;
    letter-spacing: 0.05em;
}

.promo-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.while-you-wait {
    margin-top: 2rem;
    background: linear-gradient(165deg, rgba(16, 16, 24, 0.98) 0%, var(--card-bg) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wait-title {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
}

.wait-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-gradient);
}

.wait-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.wait-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.wait-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.wait-icon {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
}

.wait-text {
    font-size: 1rem;
    font-weight: 500;
}

.pulse-badge {
    background: linear-gradient(45deg, #00ff95, #00a3ff);
    animation: pulse-bg 2s infinite;
}

.promo-ribbon {
    position: absolute;
    top: 1.5rem;
    right: -4rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 0.75rem 4rem;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.promo-subtitle {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.cta-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: center;
}

.main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.status-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
}

.notify-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.notify-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.4) }
    70% { box-shadow: 0 0 0 20px rgba(0, 247, 255, 0) }
    100% { box-shadow: 0 0 0 0 rgba(0, 247, 255, 0) }
}

@keyframes progress {
    0% { transform: translateX(-100%) }
    50% { transform: translateX(0) }
    100% { transform: translateX(100%) }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(0, 247, 255, 0.1);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
    }
}

@keyframes pulse-bg {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    body {
        height: auto;
    }

    .container {
        padding: 1rem;
        height: auto;
        min-height: unset;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .status-section {
        margin-top: 1rem;
    }

    .promo-section {
        order: -1;
    }

    .feature-item {
        min-height: unset;
        padding: 1.25rem;
    }

    .status-card {
        margin-bottom: 1rem;
    }

    .notify-section {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .promo-description {
        font-size: 1rem;
    }
    
    .promo-link {
        font-size: 1.2rem;
    }
    
    .wait-options {
        grid-template-columns: 1fr;
    }
    
    .wait-option {
        padding: 0.8rem;
    }
    
    .wait-title {
        font-size: 1.2rem;
    }

    .container {
        padding: 1rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .status-card {
        padding: 1.5rem;
    }

    .promo-ribbon {
        top: 1rem;
        right: -4rem;
        padding: 0.4rem 4rem;
        font-size: 0.8rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cta-container {
        gap: 0.75rem;
    }

    .promo-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .notify-section {
        padding: 1.5rem;
    }

    .notify-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .main-content {
        gap: 1rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .feature-item {
        min-height: auto;
        padding: 1.25rem;
    }

    .notify-section {
        margin-top: 1rem;
    }
}

/* Add responsive grid adjustment */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 1.5rem;
    }
    
    .status-card {
        margin-top: 0;
    }
    
    .promo-card {
        order: -1;
        margin-top: 0;
    }

    .feature-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .main-content {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 1.5rem;
    }

    .promo-section {
        order: -1;
    }

    .container {
        padding: 1.5rem;
        height: auto;
        min-height: 100vh;
    }

    .status-section, 
    .promo-section {
        width: 100%;
    }
}

/* Update desktop-specific media query */
@media (min-width: 1440px) {
    .main-content {
        gap: 3rem;
    }

    .status-section,
    .promo-section {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .glitch {
        font-size: 5rem;
    }

    .status-title {
        font-size: 2.2rem;
    }

    .promo-description {
        font-size: 1.3rem;
        line-height: 1.7;
    }

    .feature-list {
        margin: 3rem 0;
    }

    .feature-item {
        padding: 2rem;
        min-height: 180px;
    }

    .promo-ribbon {
        font-size: 1.1rem;
        padding: 1rem 5rem;
        right: -5rem;
    }
}
