* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal centering */
    justify-content: flex-start; /* vertical alignment */
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    padding: 40px 20px;
}

.container { max-width: 1100px; margin: 0 auto; }
h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #00d9ff;
}
.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 50px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto; /* horizontal centering */
    justify-content: center; /* optional, ensures leftover space is distributed evenly */
}


@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
.pricing-card {
    background: #16213e;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.popular {
    border: 2px solid #00d9ff;
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #00d9ff;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tier-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.price {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}
.price span { font-size: 16px; color: #888; }
.price-period { color: #666; font-size: 14px; margin-bottom: 25px; }
.features-list {
    list-style: none;
    margin-bottom: 30px;
}
.features-list li {
    padding: 8px 0;
    color: #aaa;
    font-size: 14px;
}
.features-list li::before {
    content: '✓';
    color: #00ff88;
    margin-right: 10px;
}
.features-list li.disabled {
    color: #555;
}
.features-list li.disabled::before {
    content: '✗';
    color: #555;
}
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary { background: #00d9ff; color: #000; }
.btn-primary:hover { background: #00b8d9; }
.btn-secondary { background: #333; color: #fff; }
.btn-secondary:hover { background: #444; }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.back-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    color: #666;
    text-decoration: none;
}
.back-link:hover { color: #888; }
.flash-messages {
    max-width: 600px;
    margin: 0 auto 30px;
}
.flash {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.flash.success { background: rgba(0, 255, 136, 0.2); color: #00ff88; }
.flash.warning { background: rgba(255, 170, 0, 0.2); color: #ffaa00; }
.flash.error { background: rgba(255, 69, 96, 0.2); color: #e94560; }

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #00d9ff;
    text-align: center;
    margin-bottom: 20px;
}
