/* Namaz.info — Zekât hesaplama */
.nz-wrap { container-type: inline-size; }
.nz { display: grid; gap: 1.25rem; align-items: start; }
.nz-form { min-width: 0; }
.nz h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.nz-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--_p); color: #fff; font-size: .85rem; font-weight: 700; }
.nz-h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--_m); margin: 1.1rem 0 .6rem; }
.nz-small { font-size: .85rem; color: var(--_m); margin: -.25rem 0 1rem; }
.nz-muted { color: var(--_m); font-weight: 400; }

.nz-top { display: grid; gap: .75rem; margin-bottom: 1rem; }
.nz-mezhep { border: 0; padding: 3px; margin: 0; display: inline-flex; gap: 2px; background: var(--_s2); border-radius: 99px; justify-self: start; }
.nz-mezhep legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nz-mezhep label { cursor: pointer; }
.nz-mezhep input { position: absolute; opacity: 0; pointer-events: none; }
.nz-mezhep span { display: block; padding: .45rem 1.1rem; border-radius: 99px; font-weight: 600; font-size: .92rem; color: var(--_m); transition: .15s; }
.nz-mezhep input:checked + span { background: var(--_p); color: #fff; box-shadow: 0 4px 12px -6px rgba(14, 90, 79, .7); }
.nz-mezhep input:focus-visible + span { outline: 2px solid var(--_a); outline-offset: 2px; }

.nz-prices { background: var(--_s); border: 1px solid var(--_b); border-radius: 12px; padding: .65rem .9rem; font-size: .88rem; }
.nz-prices__line { margin: 0; display: flex; gap: .45rem; align-items: flex-start; }
.nz-prices__line .ni-ico { width: 18px; height: 18px; color: var(--_p); margin-top: .1rem; }
.nz-prices__edit summary { cursor: pointer; color: var(--_p); font-weight: 600; margin-top: .4rem; font-size: .85rem; }
.nz-prices__edit[open] summary { margin-bottom: .6rem; }
.nz-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem .75rem; margin-bottom: .75rem; }
.nz-price-grid label { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; color: var(--_m); }

.nz-card { background: var(--_s); border: 1px solid var(--_b); border-radius: var(--_r); padding: clamp(1rem, 3vw, 1.4rem); margin-bottom: 1rem; }
.nz-card--muted { background: var(--_s2); }
.nz-grid--doviz { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
.nz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem 1rem; }
.nz-field { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; min-width: 0; }
.nz-field > span:first-child { font-weight: 600; }
.nz-field small { color: var(--_m); font-size: .76rem; line-height: 1.4; }
.nz-field small:empty { display: none; }
.nz-input { position: relative; display: block; }
.nz-input input, .nz-date { font: inherit; font-variant-numeric: tabular-nums; width: 100%; box-sizing: border-box; padding: .65rem 2.6rem .65rem .8rem; border-radius: 10px; border: 1px solid var(--_b); background: var(--_bg); color: var(--_t); text-align: right; }
.nz-date { padding-right: .8rem; text-align: left; }
.nz-input i { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .8rem; color: var(--_m); pointer-events: none; }
.nz-input input:focus, .nz-date:focus { outline: 0; border-color: var(--_p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--_p) 18%, transparent); }
.nz-input--sm input { padding: .5rem 2.9rem .5rem .6rem; font-size: .9rem; }

.nz-gold { display: grid; gap: .35rem; margin-bottom: .75rem; }
.nz-gold__head, .nz-gold__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: .5rem; align-items: center; }
.nz-gold__head { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--_m); padding: 0 .1rem; }
.nz-gold__head span:last-child, .nz-gold__val { text-align: right; }
.nz-gold__row { padding: .35rem .1rem; border-top: 1px solid var(--_b); }
.nz-gold__name { font-size: .9rem; font-weight: 500; }
.nz-gold__val { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--_m); white-space: nowrap; }
.nz-gold__row.is-muaf .nz-gold__val { text-decoration: line-through; opacity: .6; }

/* Sonuç */
.nz-result { position: relative; min-width: 0; }
.nz-result__box { background: linear-gradient(160deg, var(--_p) 0%, #0b453d 100%); color: #fff; border-radius: calc(var(--_r) + 4px); padding: 1.4rem 1.3rem 1.1rem; box-shadow: 0 24px 50px -30px rgba(10, 63, 56, .9); }
.nz-result__label { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.nz-result__amount { margin: .2rem 0 .3rem; font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--_a); }
.nz-result__sub { margin: 0 0 1rem; font-size: .88rem; opacity: .92; }
.nz-sum { margin: 0; display: grid; gap: .1rem; font-size: .9rem; }
.nz-sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.nz-sum dt { opacity: .85; }
.nz-sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.nz-sum__net { font-size: 1rem; }
.nz-bar { height: 6px; background: rgba(255, 255, 255, .18); border-radius: 99px; overflow: hidden; margin: .9rem 0 .75rem; }
.nz-bar span { display: block; height: 100%; width: 0; background: var(--_a); border-radius: 99px; transition: width .3s; }
.nz-status { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .45rem; font-size: .85rem; }
.nz-status li { position: relative; padding-left: 1.5rem; line-height: 1.45; }
.nz-status li::before { position: absolute; left: 0; top: 0; width: 1.1rem; text-align: center; font-weight: 700; }
.nz-status .is-ok::before { content: "✓"; color: var(--_a); }
.nz-status .is-no::before { content: "–"; opacity: .8; }
.nz-status .is-info::before { content: "i"; font-family: Georgia, serif; font-style: italic; opacity: .85; }
.nz-status .is-date::before { content: "◷"; }
.nz-detail summary { cursor: pointer; font-size: .85rem; font-weight: 600; opacity: .9; margin-bottom: .4rem; }
.nz-table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-bottom: .5rem; }
.nz-table th, .nz-table td { padding: .3rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-weight: 400; text-align: left; }
.nz-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nz-table .is-minus td { color: #ffd9a3; }
.nz-table .is-muted { opacity: .6; }
.nz-table .is-total th, .nz-table .is-total td { font-weight: 700; border-bottom: 0; color: var(--_a); }
.nz-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.nz-result .ni-btn { background: #fff; color: var(--_p); border-color: #fff; }
.nz-result .ni-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.nz-privacy { margin: .75rem 0 0; font-size: .74rem; opacity: .7; }

/* Mobil mini çubuk */
.nz-mini { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: flex; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; align-items: center; gap: .6rem; margin: .5rem 0 0; padding: .7rem 1rem; border-radius: 99px; background: var(--_p); color: #fff; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(10, 63, 56, .8); font-size: .9rem; }
.nz-mini strong { color: var(--_a); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.nz-mini em { margin-left: auto; font-style: normal; font-size: .8rem; opacity: .85; }
.nz-mini:hover { color: #fff; }
.nz-mini.is-show { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 761px) { .nz-mini { bottom: 16px; left: auto; width: 320px; } }

@container (min-width: 780px) {
	.nz { grid-template-columns: minmax(0, 1fr) 310px; }
	.nz-result { position: sticky; top: calc(var(--ni-header-h, 68px) + 16px); }
	.nz-mini { display: none; }
	.nz-top { grid-template-columns: auto 1fr; align-items: start; }
}
@container (max-width: 520px) {
	.nz-gold__head { display: none; }
	.nz-gold__row { grid-template-columns: 1fr 1fr; row-gap: .35rem; padding: .6rem 0; }
	.nz-gold__name { grid-column: 1; }
	.nz-gold__val { grid-column: 2; grid-row: 1; }
	.nz-gold__row .nz-input:nth-of-type(1)::before, .nz-gold__row .nz-input:nth-of-type(2)::before { display: block; font-size: .7rem; color: var(--_m); margin-bottom: .15rem; }
	.nz-gold__row .nz-input:nth-of-type(1)::before { content: "Birikim"; }
	.nz-gold__row .nz-input:nth-of-type(2)::before { content: "Takı / ziynet"; }
	.nz-gold__row .nz-input i { top: auto; bottom: .55rem; transform: none; }
}

@media print {
	.nz { display: block; }
	.nz-mini, .nz-actions, .nz-prices__edit, .nz-privacy { display: none !important; }
	.nz-result__box { background: #fff !important; color: #000; box-shadow: none; border: 1px solid #999; }
	.nz-result__amount, .nz-table .is-total th, .nz-table .is-total td { color: #000; }
	.nz-card { break-inside: avoid; }
}