
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #ffffff;
    --surface: #ffffff;
    --text: #171717;
    --secondary: #777777;
    --border: #eaeaea;
    --accent: #202020;
    --radius: 13px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    opacity: 0;
    animation: pageOpen 0.45s ease forwards;
}

@keyframes pageOpen {
    to {
        opacity: 1;
    }
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

.support-banner {
    background: #f7f7f7;
    border-bottom: 1px solid var(--border);
    padding: 17px 6%;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.support-banner.hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    display: none;
}

.support-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.support-content h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.support-content p {
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.5;
}

.support-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.donate-button,
.done-button {
    border: none;
    text-decoration: none;
    padding: 10px 17px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.donate-button {
    color: white;
    background: #202020;
}

.donate-button:hover {
    background: #444;
}

.done-button {
    color: #444;
    background: #e9e9e9;
}

.done-button:hover {
    background: #dedede;
}

.main-container {
    max-width: 1100px;
    width: 90%;
    margin: auto;
}

.navbar {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #999;
    font-weight: 400;
}

.language-button {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.generator-section {
    padding: 90px 0 100px;
}

.section-heading {
    text-align: center;
    margin-bottom: 42px;
}

.section-heading h1 {
    font-size: clamp(27px, 4vw, 37px);
    letter-spacing: -1.4px;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
}

.generator-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 22px;
    align-items: stretch;
}

.input-card,
.qr-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    min-height: 285px;
}

.input-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-card label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
}

.input-card input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #dedede;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border 0.2s;
}

.input-card input:focus {
    border-color: #777;
}

.input-error {
    color: #d92d35;
    font-size: 12px;
    margin-top: 8px;
    min-height: 15px;
}

.generate-button,
.download-button {
    height: 49px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.generate-button:hover,
.download-button:hover {
    background: #414141;
    transform: translateY(-1px);
}

.privacy-note {
    font-size: 11px;
    line-height: 1.5;
    color: #999;
    margin-top: 14px;
}

.qr-card {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.qr-placeholder {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 14px;
}

.placeholder-icon {
    width: 115px;
    height: 115px;
    border: 2px dashed #dedede;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 800;
    color: #c3c3c3;
}

.qr-placeholder p {
    font-size: 12px;
    color: var(--secondary);
}

.qr-result {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#qrCode {
    background: white;
    padding: 8px;
    display: flex;
    justify-content: center;
}

#qrCode canvas,
#qrCode img {
    max-width: 100%;
    height: auto;
}

.success-text {
    color: #26945b;
    font-size: 13px;
    font-weight: 600;
}

.download-button {
    max-width: 220px;
    height: 42px;
    font-size: 12px;
}

.donors-section {
    border-top: 1px solid var(--border);
    padding: 55px 0;
    text-align: center;
}

.donors-section h2 {
    font-size: 23px;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.donors-description {
    color: var(--secondary);
    font-size: 13px;
    margin-bottom: 27px;
}

.donor-list {
    max-width: 550px;
    margin: auto;
}

.empty-donors {
    color: #999;
    font-size: 13px;
    background: #fafafa;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.footer {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: #999;
    font-size: 11px;
}

@media (max-width: 700px) {
    .support-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-actions {
        width: 100%;
    }

    .main-container {
        width: 92%;
    }

    .navbar {
        height: 70px;
    }

    .generator-section {
        padding: 60px 0;
    }

    .generator-layout {
        grid-template-columns: 1fr;
    }

    .input-card,
    .qr-card {
        min-height: 250px;
        padding: 22px;
    }

    .qr-card {
        min-height: 280px;
    }
}
