/* Calculator Specific Styles */
:root {
    /* controls height (input + segmented) */
    --control-h: 64px;
    /* label height so (label + control) match */
    --label-h: 22px;
    /* spacing between label and control */
    --label-gap: 12px;

    --brand-500: #d19936;
    --brand-600: #b57b2b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
}

.card-shadow {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .08);
}

.gold-gradient {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
}

.text-brand {
    color: var(--brand-600) !important;
}

.bg-brand-50 {
    background: #fcf9f0 !important;
}

.bg-brand-100 {
    background: #f7f0d9 !important;
}

.border-slate-100 {
    border-color: var(--slate-100) !important;
}

.border-slate-200 {
    border-color: var(--slate-200) !important;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.r-24 {
    border-radius: 1.5rem;
}

.r-16 {
    border-radius: 1rem;
}

/* Decorative */
.decor-wrap {
    position: relative;
    overflow: hidden;
}

.decor-topfade {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 24rem;
    background: linear-gradient(to bottom, #fcf9f0, transparent);
    z-index: 0;
}

.blob {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    filter: blur(48px);
    opacity: .20;
    z-index: 0;
    mix-blend-mode: multiply;
}

.blob.one {
    top: 5rem;
    right: 5rem;
    background: #efdfb3;
}

.blob.two {
    top: 5rem;
    left: 5rem;
    background: #dbeafe;
}

/* field block: label height fixed + padding/space under label */
.field-block {
    display: flex;
    flex-direction: column;
}

.field-block .field-label {
    min-height: var(--label-h);
    display: flex;
    align-items: flex-end;

    /* spacing between label and control */
    padding-bottom: var(--label-gap);

    margin: 0;
    /* keep clean */
}

/* Input focus */
.input-group-focus:focus-within .field-label {
    color: var(--brand-500);
}

.input-group-focus:focus-within #amount {
    border-color: var(--brand-500) !important;
    box-shadow: 0 0 0 .25rem rgba(209, 153, 54, .12);
    background: #fff;
}

/* Error style (no message) */
.input-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .15) !important;
    background: #fff !important;
}

/* Amount input height */
#amount {
    height: var(--control-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: var(--control-h) !important;

    padding-left: 4.25rem !important;
    padding-right: 1.25rem !important;

    font-size: 1.5rem !important;
    border-radius: 1rem !important;
    background: var(--slate-50) !important;
    border-color: var(--slate-200) !important;
}

/* Segmented (arbitrators) height = amount height */
.segmented {
    background: var(--slate-100);
    border-radius: 1rem;
    padding: .25rem;
    height: var(--control-h);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.segmented .btn {
    height: 100% !important;
    border-radius: .75rem;
    border: 0;
    padding: 0 .75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
}

.segmented .btn.active {
    background: #fff;
    color: var(--brand-600);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .06);
    outline: 1px solid var(--slate-200);
}

.segmented .btn:not(.active) {
    background: transparent;
    color: var(--slate-500);
    font-weight: 500;
}

.segmented .btn:not(.active):hover {
    background: rgba(255, 255, 255, .5);
    color: var(--slate-700);
}

/* Fees rows */
.fee-row {
    border-bottom: 1px dashed var(--slate-200);
    border-radius: .75rem;
    padding: 1rem;
    margin-inline: -1rem;
    transition: background .2s ease;
}

.fee-row:hover {
    background: var(--slate-50);
}

.mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
    flex: 0 0 auto;
}

.fee-row:hover .mini-icon {
    background: #f7f0d9;
    color: var(--brand-600);
}

/* pattern bg */
.pattern {
    position: absolute;
    inset: 0;
    opacity: .03;
    background-image: radial-gradient(var(--slate-500) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Reduce calc button height */
#calcBtn {
    padding-top: .85rem !important;
    padding-bottom: .85rem !important;
    font-size: 1rem !important;
}

@media (min-width: 768px) {
    #calcBtn {
        padding-top: .95rem !important;
        padding-bottom: .95rem !important;
    }
}

/* RTL Dropdown Styles for Arabic Navigation */
.main-menu__list .dropdown {
    position: relative;
}

.main-menu__list .dropdown>a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Add dropdown arrow */
.main-menu__list .dropdown>a::after {
    content: '\f107';
    /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.main-menu__list .dropdown:hover>a::after {
    transform: rotate(180deg);
}

/* Dropdown menu styling */
.main-menu__list .dropdown>ul {
    position: absolute;
    top: 100%;
    right: 0;
    /* RTL: align to right */
    left: auto;
    min-width: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    text-align: right;
    /* RTL: right-aligned text */
    direction: rtl;
}

.main-menu__list .dropdown:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items - reduced padding */
.main-menu__list .dropdown>ul>li {
    padding: 0;
    margin: 0;
}

.main-menu__list .dropdown>ul>li>a {
    display: flex;
    flex-direction: row-reverse;
    /* RTL: icon on LEFT, text on RIGHT */
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    /* Reduced padding */
    color: #292D64;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-menu__list .dropdown>ul>li>a:hover {
    background: rgba(183, 144, 36, 0.08);
    color: #B79024;
}

.main-menu__list .dropdown>ul>li>a i {
    font-size: 16px;
    color: #B79024;
    width: 24px;
    text-align: center;
}

:root {
    --brand-50: #fcf9f0;
    --brand-100: #f7f0d9;
    --brand-200: #efdfb3;
    --brand-300: #e5c986;
    --brand-400: #dbb159;
    --brand-500: #d19936;
    --brand-600: #b57b2b;
    --brand-700: #915e25;
    --brand-800: #764b24;
    --brand-900: #613e22;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1f2937;
    --slate-900: #0f172a;
}

::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Cairo', 'Almarai', sans-serif;
    background: var(--slate-50);
    color: var(--slate-800);
}

/* Background blobs */
.bg-hero {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 24rem;
    background: linear-gradient(to bottom, var(--brand-50), transparent);
    z-index: -1;
}

.blob {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    filter: blur(48px);
    opacity: .20;
    mix-blend-mode: multiply;
    z-index: -1;
}

.blob.brand {
    background: var(--brand-200);
    top: 5rem;
    inset-inline-start: 5rem;
}

.blob.blue {
    background: #dbeafe;
    top: 5rem;
    inset-inline-end: 5rem;
}

/* Cards & shadows */
.card-soft {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .08);
}

.card-soft-sm {
    border: 2px solid var(--slate-200);
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .08);
}

/* Radio cards */
.radio-card {
    cursor: pointer;
    transition: transform .25s ease;
}

.radio-card:hover {
    transform: translateY(-2px);
}

.radio-card input:checked+.radio-surface {
    border-color: var(--brand-500) !important;
    background: var(--brand-50);
}

.check-icon {
    opacity: 0;
    transition: opacity .25s ease;
}

.radio-card input:checked+.radio-surface .check-icon {
    opacity: 1;
}

/* Input focus */
.input-group-lite:focus-within .form-label {
    color: var(--brand-500);
}

.input-group-lite:focus-within .form-control {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 .25rem rgba(209, 153, 54, .12);
    background: #fff;
}

/* Gold gradient button */
.btn-gold {
    background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: .9rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 .75rem 1.5rem -1rem rgba(209, 153, 54, .55);
    transition: transform .2s ease, opacity .2s ease;
}

.btn-gold:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

.btn-gold:active {
    transform: translateY(0);
}

/* Toggle switch (custom) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex: 0 0 auto;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--slate-300);
    transition: .3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    inset-inline-start: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--brand-500);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(-24px);
}

/* RTL: move left */

/* Small helpers */
.text-brand {
    color: var(--brand-600) !important;
}

.bg-brand-50 {
    background: var(--brand-50) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.money-input {
    text-align: left;
    direction: ltr;
}

/* keep numbers readable */