.abjad-calculator-wrap {
    max-width: 540px;
    margin: 10px auto;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

.abjad-header {
    background: linear-gradient(135deg, #3d1a6e 0%, #6b2fa0 60%, #9b4fd4 100%);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}

.abjad-header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #e8c8ff;
}

.abjad-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.abjad-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.abjad-body {
    padding: 1.75rem 1.5rem;
}

.abjad-field-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.abjad-gender-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.abjad-gender-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    transition: all 0.2s;
}

.abjad-gender-tab.active {
    border: 1.5px solid #8b3fc8;
    background: #f3e8ff;
    color: #5b1fa0;
    font-weight: 500;
}

.abjad-gender-tab.passive {
    border: 0.5px solid #ddd;
    background: #f7f7f7;
    color: #888;
}

.abjad-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 1.25rem;
    flex-direction: column;
}

@media (min-width: 480px) {
    .abjad-inputs {
        flex-direction: row;
    }
    .abjad-input-group {
        flex: 1;
    }
}

.abjad-input-group {
    flex: 1;
}

.abjad-input-wrap {
    position: relative;
}

.abjad-input-wrap .abjad-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #a56fd4;
    pointer-events: none;
}

.abjad-input-wrap input[type="text"] {
    width: 100%;
    padding: 10px 36px 10px 12px;
    box-sizing: border-box;
    border: 0.5px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: #f7f7f7;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
    text-align: right;
    outline: none;
    transition: border-color 0.2s;
}

.abjad-input-wrap input[type="text"]:focus {
    border-color: #8b3fc8;
}

.abjad-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #5b1fa0, #8b3fc8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Tahoma, Arial, sans-serif;
    transition: opacity 0.2s;
}

.abjad-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.abjad-submit:hover:not(:disabled) {
    opacity: 0.9;
}

#result {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f9f4ff;
    border: 0.5px solid #c89ded;
    border-radius: 8px;
    color: #3d1a6e;
    font-size: 14px;
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

#result h3 {
    color: #5b1fa0;
    font-size: 15px;
    margin: 1rem 0 0.4rem;
    border-bottom: 0.5px solid #d8b4f8;
    padding-bottom: 4px;
}

#result h3:first-child {
    margin-top: 0;
}

#result p {
    margin: 0.3rem 0;
}

#result li {
    list-style-type: none;
}
