/* =========================
   1. Variables
========================= */

:root {
    --background: #111210;
    --surface: #1a1b18;
    --surface-light: #22231f;

    --gold: #d9b66f;
    --gold-light: #f0dca7;
    --gold-dark: #9e7c3b;

    --text: #f4f1e9;
    --text-muted: #999a91;

    --border: rgba(217, 182, 111, 0.16);

    --radius-large: 24px;
    --radius-medium: 15px;
}


/* =========================
   2. Reset
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(217, 182, 111, 0.09),
            transparent 55%
        ),
        var(--background);

    color: var(--text);

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}


/* =========================
   3. Main Container
========================= */

.app-container {
    width: 100%;
    max-width: 560px;

    margin: 0 auto;

    padding: 28px 22px 24px;
}


/* =========================
   4. Header
========================= */

.app-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 35px;

    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.brand-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--gold-light);

    border: 1px solid rgba(217, 182, 111, 0.38);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(217, 182, 111, 0.15),
            rgba(217, 182, 111, 0.025)
        );
}

.brand-text h1 {
    font-size: 19px;

    font-weight: 750;

    letter-spacing: -0.5px;
}

.brand-text p {
    font-size: 9px;

    letter-spacing: 2px;

    color: var(--gold);

    direction: ltr;

    text-align: right;
}

.currency-badge {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 7px 10px;

    border: 1px solid var(--border);

    border-radius: 30px;

    color: var(--text-muted);

    font-size: 10px;

    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;

    background: var(--gold);

    border-radius: 50%;
}


/* =========================
   5. Welcome
========================= */

.welcome-section {
    padding: 37px 0 27px;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--gold);

    font-size: 12px;

    margin-bottom: 13px;
}

.eyebrow-line {
    display: inline-block;

    width: 22px;
    height: 1px;

    background: var(--gold);
}

.welcome-section h2 {
    font-size: clamp(27px, 7vw, 34px);

    line-height: 1.55;

    letter-spacing: -1px;

    font-weight: 800;
}

.gold-text {
    color: var(--gold-light);
}

.welcome-section > p {
    margin-top: 10px;

    color: var(--text-muted);

    font-size: 13px;

    line-height: 2;
}


/* =========================
   6. Calculator Card
========================= */

.calculator-card {
    padding: 23px;

    background:
        linear-gradient(
            145deg,
            #1c1d19,
            #171815
        );

    border: 1px solid var(--border);

    border-radius: var(--radius-large);

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.16);
}

.card-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 25px;
}

.card-heading h3 {
    font-size: 19px;

    font-weight: 750;
}

.card-heading p {
    color: var(--text-muted);

    font-size: 12px;

    margin-top: 3px;
}

.calculator-symbol {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    color: var(--gold);

    font-size: 25px;

    border-radius: 13px;

    background: rgba(217, 182, 111, 0.09);

    border: 1px solid var(--border);
}


/* =========================
   7. Form Fields
========================= */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    font-size: 14px;

    font-weight: 650;

    margin-bottom: 9px;
}

.input-wrapper {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    padding: 0 14px;

    border: 1px solid #383a33;

    border-radius: var(--radius-medium);

    background: #141512;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--gold-dark);

    box-shadow:
        0 0 0 3px rgba(217, 182, 111, 0.07);
}

.input-wrapper input {
    flex: 1;

    width: 100%;

    min-width: 0;

    height: 56px;

    border: none;

    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 19px;

    font-weight: 650;

    font-family: inherit;
}

.input-wrapper input::placeholder {
    color: #66675f;

    font-size: 16px;

    font-weight: 400;
}

.input-icon {
    flex-shrink: 0;

    color: var(--gold);

    font-size: 13px;

    font-weight: 700;
}

.input-hint {
    display: block;

    color: var(--text-muted);

    font-size: 11px;

    margin-top: 7px;
}


/* =========================
   8. Calculate Button
========================= */

.calculate-button {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;

    min-height: 57px;

    padding: 12px 18px;

    margin-top: 6px;

    border: 1px solid transparent;

    border-radius: 15px;

    background:
        linear-gradient(
            110deg,
            #c6a15a,
            #ead59c
        );

    color: #201a0e;

    font-family: inherit;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.calculate-button:hover {
    filter: brightness(1.07);
}

.calculate-button:active {
    transform: scale(0.985);
}

.calculate-button:focus-visible {
    outline: 3px solid var(--gold-light);

    outline-offset: 4px;
}

.button-arrow {
    display: grid;

    place-items: center;

    width: 31px;
    height: 31px;

    border-radius: 10px;

    background: rgba(32, 26, 14, 0.1);

    font-size: 20px;
}


/* =========================
   9. Error Message
========================= */

.error-message {
    color: #ff9999;

    font-size: 12px;

    line-height: 1.7;

    min-height: 0;

    margin-bottom: 0;
}

.error-message:not(:empty) {
    margin-top: -10px;

    margin-bottom: 15px;
}


/* =========================
   10. Result Card
========================= */

.result-card {
    margin-top: 24px;

    padding: 21px 19px;

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(217, 182, 111, 0.11),
            rgba(217, 182, 111, 0.035)
        );

    border: 1px solid rgba(217, 182, 111, 0.23);

    overflow: hidden;
}

.result-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.result-label {
    color: #d2c6a8;

    font-size: 12px;
}

.result-check {
    width: 24px;
    height: 24px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(217, 182, 111, 0.12);

    color: var(--gold-light);

    font-size: 12px;
}

.result-value {
    margin-top: 10px;

    color: var(--gold-light);

    font-size: clamp(27px, 7vw, 37px);

    font-weight: 850;

    letter-spacing: -0.7px;

    line-height: 1.5;

    overflow-wrap: anywhere;

    direction: ltr;

    text-align: right;

    font-variant-numeric: tabular-nums;
}

.result-currency {
    color: #aaa18a;

    font-size: 12px;
}

.result-currency span {
    margin-right: 5px;

    font-size: 10px;

    letter-spacing: 1px;
}

.result-divider {
    height: 1px;

    background: rgba(217, 182, 111, 0.15);

    margin: 20px 0;
}


/* =========================
   11. Result