.yge-wrap {
    --yge-ink: #17212b;
    --yge-muted: #65717d;
    --yge-line: #dfe6ea;
    --yge-bg: #f7f4ee;
    --yge-card: #ffffff;
    --yge-red: #b4232c;
    --yge-gold: #d9a441;
    --yge-green: #0f7b5f;
    --yge-deep: #253143;
    --yge-cream: #fff7e7;
    color: var(--yge-ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(217, 164, 65, 0.24), transparent 28%),
        radial-gradient(circle at 92% 16%, rgba(15, 123, 95, 0.16), transparent 26%),
        linear-gradient(135deg, rgba(180, 35, 44, 0.1), rgba(217, 164, 65, 0.17)),
        var(--yge-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: clamp(28px, 5vw, 72px) 16px;
}

.yge-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
    gap: clamp(24px, 5vw, 56px);
    max-width: 1160px;
    margin: 0 auto;
    align-items: start;
}

.yge-rate-card {
    position: sticky;
    top: 24px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(180, 35, 44, 0.92), rgba(37, 49, 67, 0.98) 42%, rgba(15, 123, 95, 0.92)),
        #253143;
    color: #ffffff;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 24px 70px rgba(23, 33, 43, 0.18);
}

.yge-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(217, 164, 65, 0.16);
    color: #ffd979;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.yge-rate-card h1 {
    margin: 18px 0 12px;
    color: #ffffff;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.yge-rate-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.62;
}

.yge-exchange-visual {
    display: grid;
    grid-template-columns: 1fr 54px 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
    padding: 14px;
}

.yge-currency-card {
    display: grid;
    place-items: center;
    min-height: 156px;
    border-radius: 6px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.yge-currency-rmb {
    background: linear-gradient(145deg, #d9303e, #8f1b23);
}

.yge-currency-ghs {
    background: linear-gradient(145deg, #16a06f, #0f6d51);
}

.yge-currency-card span {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
}

.yge-currency-card strong {
    margin-top: 10px;
    color: #ffd979;
    font-size: 24px;
    line-height: 1;
}

.yge-currency-card small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 700;
}

.yge-exchange-arrows {
    display: grid;
    gap: 8px;
    justify-items: center;
    color: #ffd979;
    font-size: 30px;
    font-weight: 900;
}

.yge-exchange-arrows span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.yge-rate-box {
    display: grid;
    gap: 6px;
    margin-top: 26px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #ffffff, var(--yge-cream));
    color: var(--yge-ink);
    padding: 18px;
}

.yge-rate-box span,
.yge-rate-box small {
    color: var(--yge-muted);
    font-size: 13px;
    font-weight: 700;
}

.yge-rate-box strong {
    color: var(--yge-red);
    font-size: 28px;
    line-height: 1.2;
}

.yge-yuan-symbol,
.yge-cedi-symbol {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 4px;
    font-size: 21px;
    vertical-align: middle;
}

.yge-yuan-symbol {
    background: var(--yge-red);
    color: #ffffff;
}

.yge-cedi-symbol {
    background: var(--yge-green);
    color: #ffffff;
}

.yge-note {
    margin-top: 16px;
    border-left: 4px solid var(--yge-gold);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
}

.yge-form-card {
    border: 1px solid rgba(23, 33, 43, 0.1);
    border-radius: 8px;
    background: var(--yge-card);
    box-shadow: 0 24px 70px rgba(23, 33, 43, 0.12);
    padding: clamp(18px, 3vw, 30px);
}

.yge-form {
    display: grid;
    gap: 18px;
}

.yge-result {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(180, 35, 44, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #fff6f3, #fffaf0);
    padding: 16px;
}

.yge-result span {
    color: var(--yge-muted);
    font-weight: 800;
}

.yge-result strong {
    color: var(--yge-red);
    font-size: 28px;
    line-height: 1.1;
}

.yge-result strong::first-letter {
    color: var(--yge-gold);
}

.yge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.yge-form label {
    display: grid;
    gap: 7px;
    color: var(--yge-ink);
    font-size: 14px;
    font-weight: 800;
}

.yge-form input,
.yge-form select,
.yge-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--yge-line);
    border-radius: 6px;
    background: #fbfcfd;
    color: var(--yge-ink);
    font: inherit;
    font-weight: 550;
    padding: 12px;
}

.yge-form input:focus,
.yge-form select:focus,
.yge-form textarea:focus {
    outline: none;
    border-color: var(--yge-red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(180, 35, 44, 0.12);
}

.yge-form small {
    color: var(--yge-muted);
    font-size: 12px;
    line-height: 1.35;
}

.yge-section-title {
    border-top: 1px solid var(--yge-line);
    padding-top: 18px;
    border-left: 5px solid var(--yge-gold);
    padding-left: 13px;
}

.yge-section-title h2 {
    margin: 0 0 5px;
    color: var(--yge-ink);
    font-size: 22px;
    letter-spacing: 0;
}

.yge-section-title p {
    margin: 0;
    color: var(--yge-muted);
    font-size: 14px;
}

.yge-upload {
    border: 1px dashed rgba(180, 35, 44, 0.36);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 247, 231, 0.92), rgba(238, 248, 244, 0.95));
    padding: 16px;
}

.yge-upload input {
    border: 0;
    min-height: auto;
    padding: 6px 0;
    background: transparent;
}

.yge-upload strong {
    color: var(--yge-green);
    font-size: 14px;
}

.yge-form button {
    min-height: 54px;
    border: 0;
    border-radius: 6px;
    background: var(--yge-red);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 850;
    transition: background 160ms ease, transform 160ms ease;
}

.yge-form button:hover,
.yge-form button:focus {
    background: #8f1b23;
    transform: translateY(-1px);
}

.yge-message {
    border-radius: 6px;
    padding: 11px 12px;
    margin-bottom: 16px;
    font-weight: 750;
    font-size: 14px;
}

.yge-message-success {
    background: #e8f6ef;
    color: #17613a;
}

.yge-message-error {
    background: #fdebec;
    color: #9b1c24;
}

@media (max-width: 900px) {
    .yge-shell {
        grid-template-columns: 1fr;
    }

    .yge-rate-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .yge-wrap {
        padding: 22px 12px;
    }

    .yge-rate-card h1 {
        font-size: 36px;
    }

    .yge-grid,
    .yge-result {
        grid-template-columns: 1fr;
        display: grid;
    }

    .yge-exchange-visual {
        grid-template-columns: 1fr;
    }

    .yge-exchange-arrows {
        grid-template-columns: repeat(2, 44px);
        justify-content: center;
    }

    .yge-result strong {
        font-size: 24px;
    }
}
