.gtz-calculator {
    --gtz-green: #18483a;
    --gtz-green-deep: #10362b;
    --gtz-gold: #bd9652;
    --gtz-ink: #24332d;
    --gtz-muted: #6b7771;
    --gtz-line: #e4e9e5;
    --gtz-soft: #f5f7f4;
    --gtz-white: #fff;
    color: var(--gtz-ink);
    font-family: inherit;
    line-height: 1.55;
    margin: 2rem auto;
    max-width: 1240px;
}

.gtz-calculator *,
.gtz-calculator *::before,
.gtz-calculator *::after {
    box-sizing: border-box;
}

.gtz-calculator button,
.gtz-calculator input,
.gtz-calculator select {
    font: inherit;
}

.gtz-header {
    margin: 0 auto 2rem;
    max-width: 760px;
    text-align: center;
}

.gtz-eyebrow {
    color: var(--gtz-gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.gtz-header h2 {
    color: var(--gtz-green-deep);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.035em;
    line-height: 1.12;
    margin: 0 0 .8rem;
}

.gtz-header p,
.gtz-section-heading p {
    color: var(--gtz-muted);
    margin: 0;
}

.gtz-steward {
    background: linear-gradient(180deg, #f7f4ec 0%, var(--gtz-white) 100%);
    border: 1px solid var(--gtz-line);
    border-radius: 16px;
    margin: 0 0 1.4rem;
    padding: 1rem 1.15rem 1.1rem;
}

.gtz-privacy-note {
    color: var(--gtz-muted);
    font-size: .78rem;
    margin: 0 0 .85rem;
}

.gtz-profile-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
}

.gtz-profile-copy {
    display: grid;
    min-width: 8rem;
}

.gtz-profile-label {
    color: var(--gtz-gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gtz-active-profile-name {
    color: var(--gtz-green-deep);
    font-size: 1.05rem;
}

.gtz-profile-tabs {
    display: flex;
    flex: 1 1 220px;
    flex-wrap: wrap;
    gap: .4rem;
}

.gtz-profile-tab {
    background: var(--gtz-white);
    border: 1px solid #d5ddd7;
    border-radius: 999px;
    color: var(--gtz-ink);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    font-size: .82rem;
    font-weight: 650;
    gap: .05rem;
    min-height: 42px;
    padding: .35rem .85rem;
    text-align: left;
}

.gtz-profile-kind {
    color: var(--gtz-muted);
    font-size: .65rem;
    font-weight: 500;
}

.gtz-profile-tab.is-active {
    background: var(--gtz-green);
    border-color: var(--gtz-green);
    color: var(--gtz-white);
}

.gtz-profile-tab.is-active .gtz-profile-kind {
    color: rgb(255 255 255 / 78%);
}

.gtz-add-profile,
.gtz-cancel-profile,
.gtz-skip-niyyah,
.gtz-guided-back,
.gtz-guided-next,
.gtz-remove-profile {
    background: transparent;
    border: 1px solid #c9d4cd;
    border-radius: 8px;
    color: var(--gtz-green-deep);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 650;
    min-height: 38px;
    padding: .4rem .75rem;
}

.gtz-add-profile:hover,
.gtz-guided-next:hover,
.gtz-save-profile:hover {
    background: var(--gtz-soft);
}

.gtz-profile-editor {
    border-top: 1px solid var(--gtz-line);
    display: grid;
    gap: .75rem;
    margin-top: .9rem;
    padding-top: .9rem;
}

.gtz-profile-editor[hidden] {
    display: none;
}

.gtz-profile-editor label,
.gtz-hawl-field {
    color: var(--gtz-ink);
    display: grid;
    font-size: .82rem;
    font-weight: 650;
    gap: .35rem;
}

.gtz-profile-editor input[type="text"],
.gtz-hawl-date {
    background: var(--gtz-white);
    border: 1px solid #d7dfd9;
    border-radius: 8px;
    min-height: 42px;
    padding: .45rem .7rem;
}

.gtz-profile-editor fieldset {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin: 0;
    padding: 0;
}

.gtz-profile-editor legend {
    font-size: .82rem;
    font-weight: 650;
    margin-bottom: .4rem;
}

.gtz-choice {
    align-items: center;
    color: var(--gtz-muted);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 500;
    gap: .35rem;
}

.gtz-profile-editor-actions,
.gtz-niyyah-actions,
.gtz-guided-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gtz-save-profile,
.gtz-confirm-niyyah,
.gtz-guided-next {
    background: var(--gtz-green);
    border-color: var(--gtz-green);
    color: var(--gtz-white);
}

.gtz-journey-row {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.2rem;
    justify-content: space-between;
    margin-top: .95rem;
}

.gtz-mode-toggle {
    flex: 1 1 280px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.gtz-progress {
    background: #e7ece8;
    border-radius: 999px;
    height: 6px;
    margin: 0 0 1rem;
    overflow: hidden;
}

.gtz-progress-fill {
    background: linear-gradient(90deg, var(--gtz-gold), var(--gtz-green));
    display: block;
    height: 100%;
    width: 8%;
}

.gtz-interview-prompt {
    background: #f7f4ec;
    border-left: 3px solid var(--gtz-gold);
    color: var(--gtz-green-deep);
    font-size: .95rem;
    margin: 0 0 1rem;
    padding: .75rem .9rem;
}

.gtz-insight {
    color: var(--gtz-muted);
    font-size: .8rem;
    margin: -.4rem 0 1rem;
}

.gtz-guided-nav {
    margin: .2rem 0 1.2rem;
}

.gtz-guided-back:disabled,
.gtz-guided-next:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.gtz-guided-nav[hidden],
.gtz-interview-prompt[hidden],
.gtz-impact[hidden],
.gtz-remove-profile[hidden] {
    display: none;
}

.gtz-nisab-scale {
    margin: 0 0 1rem;
}

.gtz-scale-track {
    background: #e7ece8;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.gtz-scale-fill {
    background: var(--gtz-gold);
    display: block;
    height: 100%;
    width: 0;
}

.gtz-scale-fill.is-met {
    background: var(--gtz-green);
}

.gtz-scale-caption,
.gtz-compass p,
.gtz-impact p {
    color: var(--gtz-muted);
    display: block;
    font-size: .74rem;
    margin: .4rem 0 0;
}

.gtz-compass,
.gtz-impact,
.gtz-asnaf {
    background: var(--gtz-soft);
    border-radius: 12px;
    margin: 0 0 1rem;
    padding: .9rem 1rem;
}

.gtz-compass h3,
.gtz-impact h3 {
    color: var(--gtz-green-deep);
    font-size: .88rem;
    margin: 0 0 .25rem;
}

.gtz-compass-list {
    color: var(--gtz-ink);
    font-size: .78rem;
    margin: .35rem 0 0;
    padding-left: 1.1rem;
}

.gtz-remove-profile {
    margin-top: .55rem;
    width: 100%;
}

.gtz-niyyah-quote {
    border-left: 3px solid var(--gtz-gold);
    color: var(--gtz-green-deep);
    font-size: .92rem;
    font-style: italic;
    margin: 0 0 1.1rem;
    padding: .15rem 0 .15rem .85rem;
}

.gtz-asnaf {
    margin-top: 1.5rem;
}

.gtz-asnaf summary {
    color: var(--gtz-green-deep);
    cursor: pointer;
    font-weight: 700;
}

.gtz-asnaf p {
    margin: .7rem 0;
}

.gtz-asnaf ul {
    font-size: .86rem;
    margin: 0;
    padding-left: 1.1rem;
}

.gtz-asnaf li {
    margin: .35rem 0;
}

.gtz-layout {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.55fr) minmax(315px, .85fr);
}

.gtz-inputs {
    min-width: 0;
}

.gtz-currency-row {
    align-items: center;
    background: var(--gtz-soft);
    border: 1px solid var(--gtz-line);
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
}

.gtz-currency-row label,
.gtz-field > label {
    color: var(--gtz-ink);
    font-size: .92rem;
    font-weight: 650;
}

.gtz-currency-row select {
    background-color: var(--gtz-white);
    border: 1px solid #cfd8d2;
    border-radius: 8px;
    color: var(--gtz-ink);
    max-width: 250px;
    min-height: 42px;
    padding: .45rem 2rem .45rem .65rem;
}

.gtz-section {
    background: var(--gtz-white);
    border: 1px solid var(--gtz-line);
    border-radius: 14px;
    margin-bottom: 1rem;
    padding: 1.25rem 1.35rem 1.4rem;
}

.gtz-section[hidden] {
    display: none;
}

.gtz-section-heading {
    margin-bottom: 1.05rem;
}

.gtz-section-heading h3,
.gtz-actions h3 {
    color: var(--gtz-green-deep);
    font-size: 1.1rem;
    margin: 0 0 .25rem;
}

.gtz-section-heading p {
    font-size: .87rem;
}

.gtz-fields {
    display: grid;
    gap: 1rem 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gtz-field {
    min-width: 0;
}

.gtz-field > label {
    display: block;
    margin-bottom: .4rem;
}

.gtz-input-prefix,
.gtz-input-suffix {
    align-items: stretch;
    display: flex;
    min-height: 46px;
}

.gtz-input-prefix > span,
.gtz-input-suffix > span {
    align-items: center;
    background: var(--gtz-soft);
    border: 1px solid #d7dfd9;
    color: var(--gtz-muted);
    display: flex;
    flex: 0 0 auto;
    font-size: .82rem;
    justify-content: center;
    padding: 0 .7rem;
}

.gtz-input-prefix > span {
    border-radius: 8px 0 0 8px;
    border-right: 0;
    min-width: 49px;
}

.gtz-input-suffix > span {
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.gtz-input-prefix input,
.gtz-input-suffix input,
.gtz-modal-dialog input[type="email"],
.gtz-modal-dialog input[type="tel"] {
    background: var(--gtz-white);
    border: 1px solid #d7dfd9;
    border-radius: 8px;
    color: var(--gtz-ink);
    min-width: 0;
    padding: .65rem .75rem;
    width: 100%;
}

.gtz-input-prefix input {
    border-radius: 0 8px 8px 0;
}

.gtz-input-suffix input {
    border-radius: 8px 0 0 8px;
}

.gtz-calculator input:focus,
.gtz-calculator select:focus,
.gtz-calculator button:focus-visible {
    outline: 3px solid rgb(189 150 82 / 38%);
    outline-offset: 2px;
}

.gtz-input-prefix input:focus,
.gtz-input-suffix input:focus,
.gtz-modal-dialog input:focus {
    border-color: var(--gtz-green);
    outline: none;
}

.gtz-checkbox {
    align-items: center;
    color: var(--gtz-muted);
    display: flex;
    font-size: .82rem;
    gap: .45rem;
    margin-top: .55rem;
}

.gtz-checkbox input,
.gtz-consent input {
    accent-color: var(--gtz-green);
    flex: 0 0 auto;
    height: 16px;
    margin: 0;
    width: 16px;
}

.gtz-summary {
    background: var(--gtz-white);
    border: 1px solid var(--gtz-line);
    border-radius: 16px;
    box-shadow: 0 12px 38px rgb(27 56 42 / 9%);
    padding: 1.35rem;
    position: sticky;
    top: 24px;
}

.gtz-live-badge {
    align-items: center;
    color: var(--gtz-green);
    display: flex;
    font-size: .81rem;
    font-weight: 650;
    gap: .5rem;
    overflow-wrap: anywhere;
}

.gtz-live-dot {
    background: #35a56f;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.gtz-live-badge.is-error {
    color: #a2342e;
}

.gtz-live-badge.is-error .gtz-rates-status {
    font-weight: 500;
}

.gtz-live-badge.is-error .gtz-live-dot {
    background: #b74b43;
}

.gtz-rate-meta {
    align-items: center;
    color: var(--gtz-muted);
    display: flex;
    font-size: .73rem;
    gap: .5rem;
    justify-content: space-between;
    margin: .35rem 0 1.15rem;
    min-height: 22px;
}

.gtz-metal-rates {
    color: var(--gtz-muted);
    font-size: .72rem;
    line-height: 1.55;
    margin: -.8rem 0 1rem;
}

.gtz-refresh-rates {
    background: transparent;
    border: 0;
    color: var(--gtz-green);
    cursor: pointer;
    font-size: .76rem;
    font-weight: 650;
    padding: .2rem;
    text-decoration: underline;
}

.gtz-nisab {
    background: var(--gtz-soft);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.gtz-nisab-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.gtz-nisab-heading h3 {
    color: var(--gtz-green-deep);
    font-size: .96rem;
    margin: 0;
}

.gtz-info {
    align-items: center;
    border: 1px solid #a6b2ab;
    border-radius: 50%;
    color: var(--gtz-muted);
    cursor: help;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.gtz-toggle {
    background: #e7ece8;
    border-radius: 8px;
    display: grid;
    gap: 3px;
    grid-template-columns: 1fr 1fr;
    margin: .8rem 0;
    padding: 3px;
}

.gtz-toggle-button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--gtz-muted);
    cursor: pointer;
    font-size: .82rem;
    padding: .45rem;
}

.gtz-toggle-button.is-active {
    background: var(--gtz-white);
    box-shadow: 0 1px 3px rgb(26 52 39 / 12%);
    color: var(--gtz-green-deep);
    font-weight: 700;
}

.gtz-nisab-value {
    color: var(--gtz-green-deep);
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -.02em;
}

.gtz-nisab-detail {
    color: var(--gtz-muted);
    font-size: .78rem;
}

.gtz-summary-list {
    border-bottom: 1px solid var(--gtz-line);
    padding: .15rem 0 .7rem;
}

.gtz-summary-list > div {
    align-items: baseline;
    display: flex;
    font-size: .88rem;
    gap: .8rem;
    justify-content: space-between;
    padding: .44rem 0;
}

.gtz-summary-list span {
    color: var(--gtz-muted);
}

.gtz-summary-list strong {
    color: var(--gtz-ink);
    font-size: .91rem;
    text-align: right;
}

.gtz-due {
    display: grid;
    gap: .3rem;
    padding: 1rem 0;
}

.gtz-due > span {
    color: var(--gtz-muted);
    font-size: .82rem;
}

.gtz-due > strong {
    color: var(--gtz-green);
    font-size: 1.8rem;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.gtz-due-note {
    color: var(--gtz-muted);
    font-size: .75rem;
}

.gtz-submit-share {
    background: var(--gtz-green);
    border: 0;
    border-radius: 9px;
    color: var(--gtz-white);
    cursor: pointer;
    font-size: .93rem;
    font-weight: 700;
    min-height: 48px;
    padding: .75rem 1rem;
    transition: background .15s ease, transform .15s ease;
    width: 100%;
}

.gtz-submit-share:hover:not(:disabled) {
    background: var(--gtz-green-deep);
    transform: translateY(-1px);
}

.gtz-submit-share:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.gtz-hawl-note {
    color: var(--gtz-muted);
    font-size: .75rem;
    margin: .8rem 0 0;
}

.gtz-actions {
    border-top: 1px solid var(--gtz-line);
    margin-top: 1rem;
    padding-top: 1rem;
}

.gtz-actions h3 {
    font-size: .93rem;
    margin-bottom: .65rem;
}

.gtz-pdf,
.gtz-share-buttons button {
    background: var(--gtz-white);
    border: 1px solid #cad5cd;
    border-radius: 8px;
    color: var(--gtz-green-deep);
    cursor: pointer;
    font-size: .81rem;
    font-weight: 650;
    min-height: 40px;
    padding: .5rem .65rem;
    width: 100%;
}

.gtz-pdf:hover:not(:disabled),
.gtz-share-buttons button:hover:not(:disabled) {
    background: var(--gtz-soft);
    border-color: var(--gtz-green);
}

.gtz-pdf:disabled,
.gtz-share-buttons button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.gtz-share-buttons {
    display: grid;
    gap: .5rem;
    grid-template-columns: 1fr 1fr;
    margin-top: .5rem;
}

.gtz-feedback,
.gtz-modal-feedback {
    color: var(--gtz-green);
    font-size: .82rem;
    margin-top: .7rem;
}

.gtz-feedback.is-error,
.gtz-modal-feedback.is-error {
    color: #a2342e;
}

.gtz-modal[hidden],
.gtz-email-field[hidden],
.gtz-whatsapp-field[hidden] {
    display: none;
}

.gtz-modal {
    inset: 0;
    position: fixed;
    z-index: 999999;
}

.gtz-modal-backdrop {
    background: rgb(12 26 20 / 58%);
    inset: 0;
    position: absolute;
}

.gtz-modal-dialog {
    background: var(--gtz-white);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
    left: 50%;
    max-width: 470px;
    padding: 1.6rem;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
}

.gtz-modal-close {
    background: transparent;
    border: 0;
    color: var(--gtz-muted);
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    padding: .2rem .4rem;
    position: absolute;
    right: .8rem;
    top: .75rem;
}

.gtz-modal-dialog h3 {
    color: var(--gtz-green-deep);
    font-size: 1.3rem;
    margin: 0 1.5rem .4rem 0;
}

.gtz-modal-dialog > p {
    color: var(--gtz-muted);
    font-size: .87rem;
    margin: 0 0 1rem;
}

.gtz-modal-dialog form > label:not(.gtz-consent) {
    color: var(--gtz-ink);
    display: block;
    font-size: .85rem;
    font-weight: 650;
    margin-bottom: .8rem;
}

.gtz-modal-dialog form > label[hidden] {
    display: none;
}

.gtz-modal-dialog input[type="email"],
.gtz-modal-dialog input[type="tel"] {
    display: block;
    margin-top: .35rem;
    min-height: 43px;
}

.gtz-consent {
    align-items: flex-start;
    color: var(--gtz-muted);
    display: flex;
    font-size: .78rem;
    gap: .55rem;
    line-height: 1.45;
    margin: .9rem 0 1rem;
}

@media (max-width: 900px) {
    .gtz-layout {
        gap: 1.2rem;
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, .85fr);
    }

    .gtz-summary {
        padding: 1.1rem;
        top: 16px;
    }

    .gtz-section {
        padding: 1.1rem;
    }
}

@media (max-width: 720px) {
    .gtz-calculator {
        margin: 1.25rem auto;
    }

    .gtz-header {
        margin-bottom: 1.4rem;
        text-align: left;
    }

    .gtz-layout {
        display: flex;
        flex-direction: column;
    }

    .gtz-summary {
        order: -1;
        position: static;
        width: 100%;
    }

    .gtz-inputs {
        width: 100%;
    }

    .gtz-profile-bar,
    .gtz-journey-row,
    .gtz-niyyah-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gtz-mode-toggle {
        width: 100%;
    }

    .gtz-hawl-field,
    .gtz-add-profile,
    .gtz-guided-back,
    .gtz-guided-next,
    .gtz-save-profile,
    .gtz-confirm-niyyah {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gtz-currency-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }

    .gtz-currency-row select {
        max-width: none;
        width: 100%;
    }

    .gtz-fields {
        gap: .9rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .gtz-section {
        padding: 1rem;
    }

    .gtz-due > strong {
        font-size: 1.55rem;
    }
}
