/* Rafi Oil Store: transfer page, receipt form and order lookup. Dark industrial, glass surfaces. */

.rfo-tr,
.rfo-lookup {
    --rfo-red: #E53935;
    --rfo-red-deep: #C62828;
    --rfo-gold: #F5A623;
    --rfo-text: #CBD5E1;
    --rfo-muted: #8C8E91;
    --rfo-line: rgba(255, 255, 255, 0.08);
    --rfo-surface: rgba(255, 255, 255, 0.03);
    direction: rtl;
    text-align: right;
    color: var(--rfo-text);
    font-family: 'DanaFaNum', Tahoma, Arial, sans-serif;
}

.rfo-tr *,
.rfo-lookup * { box-sizing: border-box; font-family: inherit; }

.rfo-tr {
    position: relative;
    margin: 0 0 40px;
    padding: 32px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(229, 57, 53, 0.07) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(245, 166, 35, 0.04) 100%);
    border: 1px solid var(--rfo-line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.rfo-tr::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rfo-red), var(--rfo-gold), transparent);
    opacity: 0.8;
}

/* Header */
.rfo-tr-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rfo-gold);
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: 30px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

.rfo-tr .rfo-tr-title {
    color: #FFFFFF !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
}

.rfo-tr-lead,
.rfo-hint,
.rfo-tr-keep {
    color: var(--rfo-muted);
    font-size: 14px;
    line-height: 2;
    margin: 0 0 22px;
}

.rfo-tr-keep { margin: 18px 0 0; font-size: 13px; text-align: center; }

/* Steps */
.rfo-steps {
    list-style: none !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 !important;
    margin: 0 0 24px !important;
    counter-reset: none;
}

.rfo-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rfo-line);
    font-size: 13px;
    color: var(--rfo-muted);
    margin: 0 !important;
}

.rfo-steps b {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--rfo-muted);
}

.rfo-steps li.is-now { border-color: rgba(229, 57, 53, 0.5); color: #FFFFFF; }
.rfo-steps li.is-now b { background: var(--rfo-red); color: #FFFFFF; box-shadow: 0 0 14px rgba(229, 57, 53, 0.55); }
.rfo-steps li.is-done { color: var(--rfo-text); }
.rfo-steps li.is-done b { background: rgba(245, 166, 35, 0.18); color: var(--rfo-gold); }

/* Amount */
.rfo-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 166, 35, 0.3);
    margin-bottom: 18px;
}

.rfo-amount-label { color: var(--rfo-muted); font-size: 14px; }

.rfo-amount-value,
.rfo-amount-value .amount,
.rfo-amount-value bdi {
    color: var(--rfo-gold) !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    margin-inline-end: auto;
}

/* Accounts */
.rfo-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.rfo-bankcard {
    position: relative;
    aspect-ratio: 1.7 / 1;
    max-height: 210px;
    padding: 18px 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 110%, rgba(245, 166, 35, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(229, 57, 53, 0.55) 0%, transparent 55%),
        linear-gradient(135deg, #1b1b1b 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.rfo-bankcard-top { display: flex; align-items: center; justify-content: space-between; }

.rfo-bankcard-chip {
    width: 42px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f8d27a 0%, #F5A623 45%, #b8761a 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    position: relative;
}

.rfo-bankcard-chip::after {
    content: '';
    position: absolute;
    inset: 8px 6px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.rfo-bankcard-bank { color: #FFFFFF; font-weight: 800; font-size: 15px; }

.rfo-bankcard-num {
    color: #FFFFFF;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.rfo-bankcard-foot,
.rfo-sheba-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--rfo-text);
    font-size: 14px;
}

.rfo-sheba {
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--rfo-surface);
    border: 1px solid var(--rfo-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.rfo-sheba-title { color: #FFFFFF; font-weight: 800; }
.rfo-sheba-title small { color: var(--rfo-muted); font-weight: 400; font-size: 12px; }

.rfo-sheba-num {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: left;
    white-space: nowrap;
    overflow-x: auto;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
}

/* Copy buttons */
.rfo-tr .rfo-copy {
    flex: 0 0 auto;
    border: 1px solid rgba(245, 166, 35, 0.5) !important;
    background: transparent !important;
    color: var(--rfo-gold) !important;
    border-radius: 10px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rfo-tr .rfo-copy:hover { background: rgba(245, 166, 35, 0.12) !important; }
.rfo-tr .rfo-copy.is-done { background: var(--rfo-gold) !important; color: #0A0A0A !important; }

/* Alerts */
.rfo-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px;
    line-height: 1.9;
    font-size: 14px;
    border: 1px solid transparent;
}

.rfo-alert.is-ok { background: rgba(46, 204, 113, 0.08); border-color: rgba(46, 204, 113, 0.3); color: #7be3a6; }
.rfo-alert.is-err { background: rgba(229, 57, 53, 0.08); border-color: rgba(229, 57, 53, 0.35); color: #ff9e9b; }
.rfo-alert.is-wait { background: rgba(245, 166, 35, 0.08); border-color: rgba(245, 166, 35, 0.3); color: #ffd18a; }

/* Receipt form */
.rfo-form {
    border-top: 1px dashed var(--rfo-line);
    padding-top: 22px;
}

.rfo-tr .rfo-form h3 {
    color: #FFFFFF !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: 0 !important;
}

.rfo-drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 92px;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 14px;
    border: 1.5px dashed rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.04);
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rfo-drop:hover,
.rfo-drop.is-filled { border-color: var(--rfo-gold); background: rgba(245, 166, 35, 0.08); }

.rfo-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.rfo-drop-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}

.rfo-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.rfo-field > span { color: #FFFFFF; font-size: 14px; font-weight: 700; }
.rfo-field small { color: var(--rfo-muted); font-weight: 400; }

.rfo-tr .rfo-field input,
.rfo-tr .rfo-field textarea,
.rfo-lookup .rfo-field input {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    height: auto !important;
    box-shadow: none !important;
    outline: none !important;
}

.rfo-tr .rfo-field input:focus,
.rfo-tr .rfo-field textarea:focus,
.rfo-lookup .rfo-field input:focus {
    border-color: var(--rfo-gold) !important;
    box-shadow: 0 0 14px rgba(245, 166, 35, 0.18) !important;
}

.rfo-submit {
    display: block !important;
    width: 100% !important;
    margin-top: 6px;
    padding: 16px 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--rfo-red-deep, #C62828) 0%, var(--rfo-red, #E53935) 100%) !important;
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rfo-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(229, 57, 53, 0.45); }
.rfo-submit[disabled] { opacity: 0.7; transform: none; }

/* Order lookup page */
.rfo-lookup {
    max-width: 520px;
    margin: 40px auto 60px;
    padding: 34px 30px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(229, 57, 53, 0.06) 0%, rgba(255, 255, 255, 0.02) 50%);
    border: 1px solid var(--rfo-line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.rfo-lookup-head { text-align: center; margin-bottom: 22px; }

.rfo-lookup-icon {
    display: inline-block;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin-bottom: 12px;
    background: rgba(229, 57, 53, 0.12) no-repeat center / 30px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E53935' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.rfo-lookup h2 { color: #FFFFFF !important; font-size: 26px !important; font-weight: 900 !important; margin: 0 0 8px !important; }
.rfo-lookup-head p { color: var(--rfo-muted); line-height: 2; font-size: 14px; margin: 0; }

@media (max-width: 600px) {
    .rfo-tr { padding: 22px 16px; border-radius: 16px; }
    .rfo-tr .rfo-tr-title { font-size: 22px !important; }
    .rfo-steps { grid-template-columns: 1fr; }
    .rfo-amount-value, .rfo-amount-value .amount, .rfo-amount-value bdi { font-size: 24px !important; }
    .rfo-bankcard-num { font-size: 19px; }
    .rfo-sheba-num { font-size: 14px; }
    .rfo-lookup { padding: 26px 18px; margin: 24px 16px 40px; }
}
