.sgm-zakat-calculator {
    max-width: 1100px;
    color: #232835;
}

.sgm-zakat-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sgm-zakat-header h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.sgm-zakat-header p {
    margin: 0;
    color: #4b5563;
}

.sgm-zakat-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
    align-items: start;
}

.sgm-zakat-form .sgm-zakat-section,
.sgm-zakat-panel,
.sgm-zakat-donation {
    background: #f9f7ee;
    padding: 1.5rem;
}

.sgm-zakat-form .sgm-zakat-section {
    margin-bottom: 1.5rem;
}

.sgm-zakat-section h3,
.sgm-zakat-panel h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.sgm-zakat-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sgm-zakat-toggle input {
    margin-right: 0.35rem;
}

.sgm-zakat-row {
    display: grid;
    grid-template-columns: 1.1fr minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.sgm-zakat-row--weight {
    grid-template-columns: 1.1fr minmax(0, 1fr) 0.7fr;
}

.sgm-zakat-row label {
    font-weight: 600;
}

.sgm-zakat-input-wrap {
    position: relative;
    width: 100%;
}

.sgm-zakat-input-wrap span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
}

.sgm-zakat-input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: #fff;
    font-size: 1rem;
}

.sgm-zakat-input[data-asset],
.sgm-zakat-input[data-liability] {
    padding-left: 2rem;
}

.sgm-zakat-input:focus,
.sgm-zakat-unit:focus {
    outline: 2px solid #3b82f6;
    border-color: #3b82f6;
}

.sgm-zakat-unit {
    min-height: 54.71px;
}

.sgm-zakat-prices-note {
    font-size: 0.95rem;
    color: #0c0c0c;
    margin-bottom: 0.8rem;
}

.sgm-zakat-metal-weight.is-hidden,
.sgm-zakat-metal-value.is-hidden {
    display: none;
}

.sgm-zakat-helper {
    font-size: 0.9rem;
    color: #6b7280;
}

.sgm-zakat-summary {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.sgm-zakat-summary div {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.sgm-zakat-nisab {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.sgm-zakat-nisab-header {
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.sgm-zakat-nisab-values {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.sgm-zakat-nisab-toggle {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 600;
}

.sgm-zakat-due {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sgm-zakat-due strong {
    font-size: 1.8rem;
}

.sgm-zakat-status {
    font-size: 0.95rem;
    color: #6b7280;
}

.sgm-zakat-donation {
    margin-top: 1.5rem;
}

.sgm-zakat-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.sgm-zakat-tile {
    background: #cde4e2;
    color: #232835;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sgm-zakat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(14, 133, 126, 0.18);
}

.sgm-zakat-tile.is-active {
    background: #114f51;
    color: #efefef;
}

.sgm-zakat-other {
    margin-top: 1rem;
    position: relative;
}

.sgm-zakat-other span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
}

.sgm-zakat-other input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.2rem;
    background: #cde4e2;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
}

.sgm-zakat-type {
    margin-top: 1.2rem;
    text-align: center;
}

.sgm-zakat-type label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.sgm-zakat-type .select {
    width: 100%;
    border: none;
    background-color: #cde4e2;
    font-weight: 600;
    font-size: 1.2rem;
    height: 60px;
    border-radius: 10px;
    background-image: linear-gradient(45deg, transparent 50%, #0e857e 50%),
        linear-gradient(135deg, #0e857e 50%, transparent 50%),
        linear-gradient(to right, #cde4e2, #cde4e2);
    background-position: calc(100% - 20px) calc(1em + 2px),
        calc(100% - 15px) calc(1em + 2px),
        calc(100% - 2.5em) 0.5em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.sgm-zakat-type .select:focus {
    outline: 2px solid #3b82f6;
}

.sgm-zakat-warning {
    margin-top: 0.8rem;
    color: #b91c1c;
    font-weight: 600;
    min-height: 1.2em;
    text-align: center;
}

.sgm-zakat-cta {
    margin-top: 1rem;
    width: 100%;
    background: #fbbd32;
    color: #232835;
    font-weight: 700;
    padding: 0.95rem;
    border: none;
    border-radius: 8px;
}

.sgm-zakat-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sgm-zakat-cta.is-loading {
    opacity: 0.8;
    cursor: progress;
}

@media (max-width: 1024px) {
    .sgm-zakat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .sgm-zakat-tiles {
        grid-template-columns: 1fr;
    }
}
