* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #090b12;
    --card: #11151f;
    --card-2: #151a25;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #9297a5;
    --red: #ff2029;
    --red-dark: #c90f18;
    --green: #20d66b;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            rgba(255, 20, 30, 0.12),
            transparent 35%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.page {
    width: 100%;
    min-height: 100vh;
}


/* HEADER */

.top-header {
    width: 100%;
    max-width: 760px;
    margin: auto;
    padding: 25px 20px 10px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    border: 1px solid var(--border);
    background: var(--card);
    color: #ffffff;

    height: 44px;
    padding: 0 15px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    transition: 0.2s ease;
}

.back-btn:hover {
    border-color: rgba(255, 32, 41, 0.5);
    background: #181d28;
}

.back-btn span {
    font-size: 22px;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.small-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--red);
}

.header-title h1 {
    font-size: 24px;
    font-weight: 800;
}


/* MAIN */

.credit-container {
    width: 100%;
    max-width: 700px;
    margin: auto;

    padding: 25px 20px 50px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* WALLET */

.wallet-card {
    width: 100%;

    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 32, 41, 0.14),
            rgba(17, 21, 31, 0.95)
        );

    display: flex;
    align-items: center;
    gap: 18px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);
}

.wallet-icon {
    width: 58px;
    height: 58px;

    border-radius: 16px;

    background: rgba(255, 32, 41, 0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wallet-info span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.wallet-info strong {
    font-size: 25px;
    font-weight: 800;
}


/* REDEEM CARD */

.redeem-card {
    width: 100%;

    padding: 28px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.25);
}

.section-heading {
    margin-bottom: 25px;
}

.heading-label {
    color: var(--red);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 3px;
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 25px;
    font-weight: 800;
}

.section-heading p {
    margin-top: 7px;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}


/* INPUT */

.input-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.input-group label {
    font-size: 12px;
    font-weight: 700;
    color: #d8dbe2;
}

.code-input-wrapper {
    height: 58px;

    display: flex;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #0c1018;

    transition: 0.2s ease;
}

.code-input-wrapper:focus-within {
    border-color: var(--red);
    box-shadow:
        0 0 0 3px rgba(255, 32, 41, 0.1);
}

.code-icon {
    width: 50px;

    text-align: center;

    color: var(--red);
    font-size: 21px;
    font-weight: 900;
}

.code-input-wrapper input {
    flex: 1;

    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-input-wrapper input::placeholder {
    color: #5f6572;
    font-weight: 500;
}


/* BUTTON */

.redeem-btn {
    width: 100%;
    height: 56px;

    margin-top: 18px;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    transition: 0.2s ease;
}

.redeem-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 25px rgba(255, 32, 41, 0.22);
}

.redeem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* LOADER */

.loader {
    width: 18px;
    height: 18px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* MESSAGE */

.message-box {
    margin-top: 16px;

    padding: 13px 15px;

    border-radius: 12px;

    font-size: 13px;
    line-height: 1.5;
}

.message-box.success {
    color: #65ef9d;

    background: rgba(32, 214, 107, 0.08);

    border: 1px solid rgba(32, 214, 107, 0.2);
}

.message-box.error {
    color: #ff7c82;

    background: rgba(255, 32, 41, 0.08);

    border: 1px solid rgba(255, 32, 41, 0.2);
}


/* INFO */

.info-card,
.security-card {
    display: flex;
    gap: 15px;

    padding: 20px;

    border-radius: 17px;

    background: var(--card);

    border: 1px solid var(--border);
}

.info-icon,
.security-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 32, 41, 0.1);

    font-size: 18px;
}

.info-card h3,
.security-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.info-card p,
.security-card p {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


/* MOBILE */

@media (max-width: 600px) {

    .top-header {
        padding: 18px 15px 8px;
    }

    .credit-container {
        padding: 20px 15px 40px;
    }

    .redeem-card {
        padding: 22px 18px;
    }

    .wallet-card {
        padding: 20px;
    }

    .wallet-info strong {
        font-size: 22px;
    }

    .header-title h1 {
        font-size: 21px;
    }
}