
                *,
                *::before,
                *::after {
                    margin: 0;
                    padding: 0;
                    box-sizing: border-box;
                }
        
                :root {
                    --glass-bg: rgba(255, 255, 255, 0.05);
                    --glass-border: rgba(255, 255, 255, 0.1);
                    --glass-highlight: rgba(255, 255, 255, 0.15);
                    --text-primary: rgba(255, 255, 255, 0.95);
                    --text-secondary: rgba(255, 255, 255, 0.7);
                    --text-muted: rgba(255, 255, 255, 0.5);
                    --success-green: #22c55e;
                    --error-red: #ef4444;
                    --accent-blue: #60a5fa;
                    --radius-sm: 8px;
                    --radius-md: 16px;
                    --radius-lg: 24px;
                    --radius-xl: 32px;
                }
        
                html {
                    scroll-behavior: smooth;
                }
        
                body {
                    min-height: 100vh;
                    background: #000;
                    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
                    color: var(--text-primary);
                    line-height: 1.6;
                    overflow-x: hidden;
                }
        
                /* ============================================
                   Galaxy Background
                   ============================================ */
                .galaxy-bg {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: -1;
                    background: #000;
                    overflow: hidden;
                }
        
                .star {
                    position: absolute;
                    background: #fff;
                    border-radius: 50%;
                    animation: twinkle var(--duration, 3s) ease-in-out infinite;
                    animation-delay: var(--delay, 0s);
                }
        
                .star::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 200%;
                    height: 200%;
                    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
                    border-radius: 50%;
                }
        
                @keyframes twinkle {
        
                    0%,
                    100% {
                        opacity: 0.3;
                        transform: scale(1);
                    }
        
                    50% {
                        opacity: 1;
                        transform: scale(1.2);
                    }
                }
        
                /* ============================================
                   Layout
                   ============================================ */
                .main-container {
                    max-width: 640px;
                    margin: 0 auto;
                    padding: 2rem;
                    padding-top: 120px;
                }
        
                /* ============================================
                   Page Header
                   ============================================ */
                .page-header {
                    text-align: center;
                    margin-bottom: 2rem;
                    padding: 2.5rem 2rem;
                    background: var(--glass-bg);
                    border: 1px solid var(--glass-border);
                    border-radius: var(--radius-xl);
                    backdrop-filter: blur(40px);
                    -webkit-backdrop-filter: blur(40px);
                    position: relative;
                    overflow: hidden;
                }
        
                .page-header::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    height: 1px;
                    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
                }
        
                .page-header h1 {
                    font-size: clamp(1.75rem, 5vw, 2.5rem);
                    font-weight: 700;
                    letter-spacing: -0.02em;
                    margin-bottom: 0.5rem;
                    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                }
        
                .page-header p {
                    color: var(--text-secondary);
                    font-size: 1rem;
                }
        
                /* ============================================
                   Glass Card
                   ============================================ */
                .glass-card {
                    position: relative;
                    background: var(--glass-bg);
                    border: 1px solid var(--glass-border);
                    border-radius: var(--radius-lg);
                    backdrop-filter: blur(40px);
                    -webkit-backdrop-filter: blur(40px);
                    padding: 2rem;
                    margin-bottom: 1.5rem;
                    overflow: hidden;
                }
        
                .glass-card::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    height: 1px;
                    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
                }
        
                .card-label {
                    font-size: 0.8rem;
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.08em;
                    color: var(--text-muted);
                    margin-bottom: 1.25rem;
                }
        
                /* ============================================
                   Redeem Form
                   ============================================ */
                .redeem-form {
                    display: flex;
                    flex-direction: column;
                    gap: 1rem;
                }
        
                .code-input-row {
                    display: flex;
                    gap: 0.75rem;
                    align-items: stretch;
                }
        
                .code-input {
                    flex: 1;
                    padding: 0.875rem 1.25rem;
                    background: rgba(255, 255, 255, 0.03);
                    border: 1px solid var(--glass-border);
                    border-radius: var(--radius-md);
                    color: var(--text-primary);
                    font-size: 1.1rem;
                    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
                    letter-spacing: 0.15em;
                    text-align: center;
                    outline: none;
                    transition: all 0.3s ease;
                    text-transform: none;
                }
        
                .code-input::placeholder {
                    color: var(--text-muted);
                    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
                    letter-spacing: normal;
                    font-size: 0.95rem;
                }
        
                .code-input:focus {
                    border-color: rgba(255, 255, 255, 0.25);
                    background: rgba(255, 255, 255, 0.06);
                    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
                }
        
                .input-hint {
                    font-size: 0.78rem;
                    color: var(--text-muted);
                    text-align: center;
                }
        
                .submit-btn {
                    width: 100%;
                    padding: 0.875rem 1.5rem;
                    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
                    border: 1px solid var(--glass-border);
                    border-radius: var(--radius-md);
                    color: var(--text-primary);
                    font-size: 0.95rem;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 0.5rem;
                }
        
                .submit-btn:hover:not(:disabled) {
                    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
                    border-color: var(--glass-highlight);
                    transform: translateY(-1px);
                }
        
                .submit-btn:active:not(:disabled) {
                    transform: translateY(0);
                }
        
                .submit-btn:disabled {
                    opacity: 0.5;
                    cursor: not-allowed;
                }
        
                /* Character counter */
                .char-counter {
                    text-align: right;
                    font-size: 0.75rem;
                    color: var(--text-muted);
                    font-family: 'SF Mono', 'Fira Code', monospace;
                    transition: color 0.2s ease;
                }
        
                .char-counter.complete {
                    color: var(--success-green);
                }
        
                .char-counter.over {
                    color: var(--error-red);
                }
        
                /* ============================================
                   Alert Messages
                   ============================================ */
                .alert {
                    padding: 0.875rem 1.25rem;
                    border-radius: var(--radius-md);
                    font-size: 0.9rem;
                    display: flex;
                    align-items: flex-start;
                    gap: 0.75rem;
                    margin-bottom: 1.5rem;
                    animation: fadeInUp 0.3s ease;
                }
        
                .alert-success {
                    background: rgba(34, 197, 94, 0.1);
                    border: 1px solid rgba(34, 197, 94, 0.25);
                    color: var(--success-green);
                }
        
                .alert-error {
                    background: rgba(239, 68, 68, 0.1);
                    border: 1px solid rgba(239, 68, 68, 0.25);
                    color: var(--error-red);
                }
        
                .alert svg {
                    flex-shrink: 0;
                    margin-top: 2px;
                }
        
                .alert-body {
                    flex: 1;
                }
        
                .alert-body .redeemed-list {
                    margin-top: 0.5rem;
                    padding-left: 0;
                    list-style: none;
                    display: flex;
                    flex-direction: column;
                    gap: 0.25rem;
                }
        
                .alert-body .redeemed-list li {
                    font-size: 0.82rem;
                    color: rgba(34, 197, 94, 0.8);
                    padding-left: 1rem;
                    position: relative;
                }
        
                .alert-body .redeemed-list li::before {
                    content: '+';
                    position: absolute;
                    left: 0;
                    font-weight: 700;
                }
        
                /* ============================================
                   Owned Mods Section
                   ============================================ */
                .mods-list {
                    display: flex;
                    flex-direction: column;
                    gap: 0.5rem;
                }
        
                .mod-row {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 0.75rem 1rem;
                    background: rgba(255, 255, 255, 0.03);
                    border: 1px solid var(--glass-border);
                    border-radius: var(--radius-sm);
                    gap: 0.75rem;
                }
        
                .mod-row.just-added {
                    border-color: rgba(34, 197, 94, 0.3);
                    animation: highlightFade 2s ease forwards;
                }
        
                @keyframes highlightFade {
                    0% {
                        background: rgba(34, 197, 94, 0.12);
                    }
        
                    100% {
                        background: rgba(255, 255, 255, 0.03);
                    }
                }
        
                .mod-row-info {
                    flex: 1;
                    min-width: 0;
                }
        
                .mod-row-title {
                    font-size: 0.9rem;
                    font-weight: 500;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
        
                .mod-row-id {
                    font-size: 0.75rem;
                    color: var(--text-muted);
                    font-family: 'SF Mono', 'Fira Code', monospace;
                }
        
                .mod-row-badge {
                    flex-shrink: 0;
                    padding: 0.25rem 0.625rem;
                    border-radius: 9999px;
                    font-size: 0.7rem;
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.05em;
                    white-space: nowrap;
                }
        
                .badge-unlimited {
                    background: rgba(34, 197, 94, 0.15);
                    border: 1px solid rgba(34, 197, 94, 0.25);
                    color: var(--success-green);
                }
        
                .badge-active {
                    background: rgba(59, 130, 246, 0.15);
                    border: 1px solid rgba(59, 130, 246, 0.25);
                    color: #60a5fa;
                }
        
                .badge-expired {
                    background: rgba(239, 68, 68, 0.1);
                    border: 1px solid rgba(239, 68, 68, 0.2);
                    color: var(--error-red);
                }
        
                .mods-empty {
                    text-align: center;
                    padding: 2rem 1rem;
                    color: var(--text-muted);
                    font-size: 0.9rem;
                }
        
                /* ============================================
                   Animations
                   ============================================ */
                @keyframes fadeInUp {
                    from {
                        opacity: 0;
                        transform: translateY(12px);
                    }
        
                    to {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }
        
                .glass-card {
                    animation: fadeInUp 0.5s ease forwards;
                    opacity: 0;
                }
        
                .glass-card:nth-child(1) {
                    animation-delay: 0.05s;
                }
        
                .glass-card:nth-child(2) {
                    animation-delay: 0.15s;
                }
        
                .glass-card:nth-child(3) {
                    animation-delay: 0.25s;
                }
        
                /* ============================================
                   Responsive
                   ============================================ */
                @media (max-width: 768px) {
                    .main-container {
                        padding: 1rem;
                        padding-top: 100px;
                    }
        
                    .page-header {
                        padding: 2rem 1.5rem;
                    }
        
                    .glass-card {
                        padding: 1.5rem;
                    }
                }
                .error-container {
                    text-align: center;
                    padding: 3rem;
                    background: rgba(255, 255, 255, 0.05);
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    border-radius: 24px;
                    backdrop-filter: blur(20px);
                    max-width: 500px;
                }
        
                .error-code {
                    font-size: 4rem;
                    font-weight: 700;
                    color: #ef4444;
                    margin-bottom: 1rem;
                }
        
                .error-message {
                    font-size: 1.1rem;
                    color: rgba(255, 255, 255, 0.8);
                    line-height: 1.6;
                }
        
                .back-btn {
                    display: inline-block;
                    margin-top: 2rem;
                    padding: 0.75rem 2rem;
                    background: rgba(255, 255, 255, 0.1);
                    border: 1px solid rgba(255, 255, 255, 0.2);
                    border-radius: 12px;
                    color: #fff;
                    text-decoration: none;
                    transition: all 0.3s ease;
                }
        
                .back-btn:hover {
                    background: rgba(255, 255, 255, 0.15);
                }