* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    padding: 40px 20px;
}

.logo {
    max-width: 290px;
    height: auto;
    margin-bottom: 20px;
}

.logo img {
    height: 265px;
    width: auto;
}

.container {
    width: 100%;
    max-width: 600px;
}

.redeem-box {
    background-color: #242424;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="text"].error {
    border-color: #ff3333;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0066ff;
}

.help-text {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
}

.error-message {
    color: #ff3333;
    font-size: 12px;
    margin-top: 8px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.checkbox-container {
    margin-bottom: 20px;
    position: relative;
}

.checkbox-container .error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
}

.checkbox-container label {
    color: #fff;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #0066ff;
}

.terms-link {
    color: #0066ff;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: #0052cc;
}

.key-icon {
    font-size: 16px;
}

.footer {
    padding: 24px;
    background-color: #242424;
    border-radius: 8px;
}

.useful-links h3 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-icon {
    font-size: 16px;
}

.useful-links ul {
    list-style: none;
    border-top: 1px solid #333;
}

.useful-links li {
    border-bottom: 1px solid #333;
}

.useful-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 0;
    display: block;
    transition: color 0.2s;
}

.useful-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    
    .logo {
        margin-bottom: 24px;
    }
    
    .redeem-box, .footer {
        padding: 16px;
    }
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.success-modal {
    background-color: #242424;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    animation: modalAppear 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message-container {
    background-color: #242424;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    text-align: center;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: #00cc66;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 4px;
}

.game-name {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
    max-width: 100%;
}

.success-text {
    color: #00cc66;
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

.success-note {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.close-button {
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.close-button:hover {
    background-color: #0052cc;
}

@media (max-width: 768px) {
    .success-modal {
        width: 90%;
        margin: 20px;
    }
    
    .success-message-container {
        padding: 20px;
    }
    
    .success-content {
        gap: 12px;
    }
    
    .game-name {
        font-size: 20px;
    }
}

