* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

#step2-result, #step2-instructions {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #A87021 0%, #FFC25A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.card {
    background: #2D2D2D;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    transition: all 0.3s ease;
}

.card-title {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    color: #fff;
}

.key-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.key-blocks {
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-block {
    width: 70px;
    height: 60px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    caret-color: #ffd700;
    outline: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.key-block:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    background: #000;
}

.key-separator {
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

.action-btn {
    background: linear-gradient(90deg, #A87021 0%, #FFC25A 100%);
    /* background: linear-gradient(90deg, #d2273b 0%, #FFC25A 100%); */

    color: #121212;
    /* color: #b30a0a; */
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    width: 100%;
    margin-top: 10px;
}

.action-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(1);
}

.error-text {
    color: #ff5252;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
    text-align: center;
}

.input-container.result-input {
    position: relative;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.input-container.result-input:hover {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.input-container input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-family: monospace;
    flex-grow: 1;
    outline: none;
    pointer-events: none;
}

.copy-icon svg {
    display: block;
}

.qr-section {
    margin-top: 20px;
    text-align: center;
}

.os-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.os-btn {
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.os-btn:hover {
    border-color: #ffffff;
    background-color: #1a1a1a;
}

.os-btn.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.instructions {
    width: 100%;
    text-align: left;
}

.instr-list {
    padding-left: 20px;
    line-height: 1.6;
    color: #ddd;
}

.instr-list li {
    margin-bottom: 8px;
}

.download-app-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 25px;
    border: none;
    transition: transform 0.2s, background 0.2s;
}

.download-app-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.download-app-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .main-title { font-size: 32px; }
    .key-blocks { gap: 5px; }
    .key-block { width: 55px; height: 50px; font-size: 18px; padding: 0; }
    .card { padding: 20px; }
}
