body {
    background: linear-gradient(135deg, #181828 0%, #2b2c3e 100%);
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    color: #f1f1f1;
}

.main-container {
    max-width: 600px;
    margin: 40px auto 40px auto; /* margin top/bottom/left/right */
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}

.brand-card {
    width: 100%;
    padding: 2.5rem 2rem;
    border-radius: 22px;
    background: rgba(30, 35, 50, 0.93);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.23);
    text-align: left;
}

.brand-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-desc {
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
    color: #c8e6fa;
}

.brand-desc .highlight {
    color: #00e6e6;
    font-weight: 600;
}

.brand-desc .subtle {
    color: #6c7a89;
    font-size: 0.98rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1.2rem;
}

.feature-list li {
    font-size: 1.07rem;
    margin-bottom: 0.7rem;
    color: #aee9ff;
    padding-left: 1.2em;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.6em;
    height: 0.6em;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 50%;
    box-shadow: 0 0 8px #00c6ff44;
}

.card {
    width: 100%;
    background: rgba(34, 40, 49, 0.97);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 2.5rem 2.2rem;
    animation: fadeInUp 0.8s cubic-bezier(.35,1.45,.68,1.08);
}

.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.3rem;
    display: flex;
    flex-direction: column;
}

.styled-input,
input[type="text"].styled-input,
input[type="password"].styled-input,
select.styled-input,
input[type="file"].styled-input {
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    background: #232931;
    color: #f1f1f1;
    font-size: 1rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px #00c6ff22;
    outline: none;
}

.styled-input:focus {
    background: #393e46;
    box-shadow: 0 0 0 2px #00c6ff99;
}

input[type="file"].styled-input {
    padding: 0.3rem;
    background: #232931;
    color: #aee9ff;
    border-radius: 8px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 1.1rem;
}

.custom-checkbox {
    appearance: none;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid #00c6ff;
    border-radius: 5px;
    background: #232931;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    display: grid;
    place-content: center;
    margin-right: 0.5em;
}

.custom-checkbox:checked {
    background: #00c6ff;
    border-color: #0072ff;
}

.custom-checkbox:checked::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    background: #fff;
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 4px #0072ff44;
}

.custom-checkbox:focus {
    outline-offset: 2px;
}

.checkbox-group label {
    font-size: 1.08em;
    color: #b2bec3;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.btn, .back-btn, .download-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(0, 198, 255, 0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    text-decoration: none;
    text-align: center;
}

.btn:hover, .back-btn:hover, .download-btn:hover {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.25);
    transform: translateY(-2px) scale(1.03);
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    background: #393e46;
    color: #f1f1f1;
    animation: fadeIn 0.6s;
    word-break: break-all;
}

.alert.success {
    border-left: 6px solid #00c6ff;
    background: #232931;
    color: #00e6e6;
}

.alert.error {
    border-left: 6px solid #ff3860;
    background: #232931;
    color: #ff3860;
}

.img-card {
    background: rgba(34, 40, 49, 0.97);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.27);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    text-align: center;
    animation: fadeInRight 0.8s;
    margin-bottom: 1.5rem;
}

.img-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px #00c6ff33;
    border: 2px solid #00c6ff66;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    object-fit: contain;
    background: #181828;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.img-note {
    font-size: 0.97rem;
    color: #b2bec3;
    margin-top: 0.6rem;
}

.img-id {
    font-size: 0.85rem;
    color: #6c7a89;
    display: block;
    margin-top: 0.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 700px) {
    .main-container {
        max-width: 98vw;
        margin: 10px;
        padding: 0;
    }
    .brand-card, .card {
        padding: 1.2rem 0.5rem;
    }
    .title, .brand-title {
        font-size: 1.3rem;
    }
}
