/* =========================================================
   حاسبة زكاة الذهب — zakat.css
   النمط: ذهبي كلاسيكي | اللون الرئيسي: #C8972B
   الاتجاه: RTL | الموقع: goldpricestoday.om
   ========================================================= */

.ozc-wrap {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 26px 22px 20px;
    max-width: 480px;
    margin: 0 auto 2rem;
    font-family: 'Segoe UI', Tahoma, 'Arial', sans-serif;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

/* ── Title ── */
.ozc-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 14px;
}

.ozc-divider {
    height: 1px;
    background: #eeeeee;
    margin-bottom: 16px;
}

/* ── Nisab info bar ── */
.ozc-nisab-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FDF3DC;
    border: 1px solid #e8d49a;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 4px;
}

.ozc-nisab-left {
    font-size: 13px;
    font-weight: 600;
    color: #7a5a10;
}

.ozc-nisab-right {
    font-size: 13px;
    font-weight: 700;
    color: #C8972B;
}

/* ── Field ── */
.ozc-field {
    margin-bottom: 18px;
}

.ozc-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 9px;
}

/* ── Karat pills ── */
.ozc-karat-pills {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    flex-wrap: wrap;
}

.ozc-karat {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #d5d5d5;
    font-size: 14px;
    font-weight: 600;
    background: #ffffff;
    color: #666666;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.ozc-karat.active {
    background: #C8972B;
    color: #ffffff;
    border-color: #C8972B;
}

.ozc-karat:hover:not(.active) {
    border-color: #C8972B;
    color: #C8972B;
}

/* ── Input ── */
.ozc-input-row {
    display: flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.15s;
}

.ozc-input-row:focus-within {
    border-color: #C8972B;
    box-shadow: 0 0 0 3px rgba(200, 151, 43, 0.12);
}

.ozc-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    color: #1a1a1a;
    background: transparent;
    direction: ltr;
    text-align: right;
    -moz-appearance: textfield;
    font-family: inherit;
}

.ozc-input::-webkit-outer-spin-button,
.ozc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.ozc-input::placeholder {
    color: #bbbbbb;
}

.ozc-input-unit {
    padding: 0 13px;
    font-size: 13px;
    font-weight: 600;
    color: #999999;
    border-right: 1px solid #eeeeee;
    white-space: nowrap;
}

/* ── Button ── */
.ozc-btn {
    width: 100%;
    padding: 13px;
    background: #C8972B;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.ozc-btn:hover  { background: #b5851f; }
.ozc-btn:active { transform: scale(0.99); background: #a3761b; }

/* ── Result box ── */
.ozc-result {
    background: #FDF3DC;
    border: 1px solid #e8d49a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    animation: ozc-fadein 0.25s ease;
}

@keyframes ozc-fadein {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ozc-result-title {
    font-size: 12px;
    font-weight: 700;
    color: #8B6914;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Two-column result layout */
.ozc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.ozc-result-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.ozc-result-col-left {
    text-align: left;
    align-items: flex-start;
}

.ozc-r-label {
    font-size: 11px;
    font-weight: 700;
    color: #8B6914;
    letter-spacing: 0.02em;
}

.ozc-r-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    direction: ltr;
}

.ozc-r-zakat {
    color: #C8972B;
}

.ozc-r-currency {
    font-size: 12px;
    color: #9B7A20;
    font-weight: 500;
}

.ozc-result-divider {
    height: 1px;
    background: #e8d49a;
    margin-bottom: 10px;
}

.ozc-result-status {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #7a5a10;
    padding: 2px 0;
}

.ozc-result-status.ozc-below {
    color: #b00020;
}

/* ── Footer ── */
.ozc-footer {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #bbbbbb;
    margin-top: 2px;
}

.ozc-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
}

.ozc-live-dot.ozc-offline { background: #e57373; }

/* ── Error shake ── */
.ozc-input-row.ozc-error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
    animation: ozc-shake 0.3s ease;
}

@keyframes ozc-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* ── Mobile ── */
@media (max-width: 520px) {
    .ozc-wrap     { padding: 20px 14px 16px; border-radius: 10px; }
    .ozc-title    { font-size: 19px; }
    .ozc-karat    { padding: 7px 15px; font-size: 13px; }
    .ozc-r-value  { font-size: 22px; }
    .ozc-btn      { font-size: 15px; padding: 12px; }
    .ozc-nisab-bar{ flex-direction: column; gap: 2px; }
    .ozc-nisab-left,
    .ozc-nisab-right { font-size: 12px; }
}

@media (max-width: 360px) {
    .ozc-karat-pills { gap: 6px; }
    .ozc-karat { padding: 6px 12px; font-size: 12px; }
}
